Call us today to see how we can help you be at your best.
SharePoint Search displays “Error from SharePoint site: *** Index was outside the bounds of the array.” in the crawl logs and the users are not able to find the affect file in search.
This issue is caused by improperly mapped Managed Metadata Column fields. The issue itself can be triggered a number of different ways. One of them which is prevalent in my environment is the Data Sheet View when used with Custom Libraries. I know what you’re thinking, the datasheet view does not support MMS columns and they are set to read-only. This is correct if the MMS field has already been populated. However, if the MMS field is blank, we are able to enter data into it. In my case the users were using the Data Sheet View as a bulk edit tool for MMS. They would map one item correctly, then copy the data (ie. “180;#Test:24: MECHANICAL”) and then paste it in the subsequent fields. From the SharePoint end everything would look fine. However, when search crawls the document, it would error out with “ The SharePoint item being crawled returned an error when requesting data from the web service. ( Error from SharePoint site: *** Index was outside the bounds of the array. )”. This would cause the document not to appear in the search results as the document is ignored once an error occurs.
Below are screenshots of two files in the same library. As you can see in the bad file, TaxHTField field begins with |Guid while it should be Term|Guid.
The solution to this problem begins at finding the reason that MMS fields are not mapped properly.
This could be caused by:
Once the cause has been found it needs to be resolved. In my case I have set Default Values for the MMS Fields, this disallows the users from entering the data using the Data Sheet View.
The next step is to deal with all of the items which have this issue. If the count is small simply edit each file and reselect the MMS Fields using the picker and save the items.
If you’re unlucky like myself, you will have more than 500 items with this issue. I was able to script the full repair process.
If you have any questions/comments you can leaven them blow.
Sign up today to receive our monthly newsletter with tips, Microsoft funding availabilites, upcoming events and industry news.
Take a customized test-drive with Microsoft and Softlanding to trial technologies such as Office 365, Power BI Pro, Delve Analytics, Cloud PBX with Skype For Business and more.
Every First Tuesday of the Month | 10:00AM - 12:00PM
Sign-up to our monthly newsletter for valuable insights, workshops/events and funding available for your next project!