Here is the setup
- SharePoint 2010
- BDC application definition
- Search Content Source of type Line of Business that crawls the BDC
Steps taken
- Import BDC application definition version 1.0.0.0
- Create content source for the BDC
- Full crawl content source
- View crawl logs shows 1000 successes
- Import updated BDC application definition version 2.0.0.0
- Full crawl content source
- View crawl logs shows 1000 successes and 1000 errors
The errors are all the same:
Error while crawling LOB contents. ( IEntity could not be found using criteria 'Id=5521'. )
Using Powershell Get-SPBusinessDataCatalogMetadataObject I can see that Id=5521 is the Id of the Entity in the BDC version 1.0.0.0
I can see by the Id in the crawl logs the successes are all for the updated Entity in the BDC version 2.0.0.0
I've tried full crawling the content source many times and the errors never go away. The only way I can find to get rid of them is to delete the content source and re-create it.
Why is this happening? Is there a better way to fix this than deleteing the content source?