We were experiencing "blank" search results from certain result types related to business data connectivity service content sources. When attempting to run full crawls, there would be periods of crawl issues in the crawl log:
Error while crawling LOB contents. ( Error caused by exception: System.InvalidOperationException This SPServiceContextScope is being disposed out of order.; SearchID = <<guid>> )
I figured this was causing the empty results to appear and there seemed to be no way of fixing this. I didn't want to reset all content as we have many content sources and I would spend all day trying to crawl each one. So therefore I decided to try a less disruptive approach and it worked!
Here's what I did:
On completion of my full crawls, I now had no Warnings or Errors on the two content sources I recreated:
Error while crawling LOB contents. ( Error caused by exception: System.InvalidOperationException This SPServiceContextScope is being disposed out of order.; SearchID = <<guid>> )
I figured this was causing the empty results to appear and there seemed to be no way of fixing this. I didn't want to reset all content as we have many content sources and I would spend all day trying to crawl each one. So therefore I decided to try a less disruptive approach and it worked!
Here's what I did:
- Deleted the Content Source from the Search Service Application
- Recreated the Content Source using the same name.
- Run a full crawl on the content source
- Once the full crawl is finished, repeat for any other BCS content sources.
On completion of my full crawls, I now had no Warnings or Errors on the two content sources I recreated:
Hi,
ReplyDeleteThe time between you deleted the content source and the new full crawl had completed would serve no results right? As a deleting a content source will start removal of indexed items for that source.
Thanks,
Mikael Svenson
I did it quick enough that results still appeared. Maybe some were cached. I was expecting no results and maybe some queries would have shown nothing. I was doing a '*' and did notice less total results but then an increasing number as the full crawl progressed. So the overall perception at least was that search was still up and running.
DeleteCool, and guess there were not millions of items either for the source :) And still much better than an overall downtime.
DeleteYep. A little under 80k items as shown in my screenshot. All good.
Delete