Overview
The My Sites section is not pulling content and showing an error: Failed to retrieve items!
When this happens, the browser Console may also indicate the following:
BONZAI ERROR: The attempted operation is prohibited because it exceeds the list view threshold.
Solution
Note: The following solution will work on any of the Bonzai features that use 'Favourites', like Site Directory, Document Portal, etc.
- Check if the 'Favourite Sites' list shows more than 5000 items
Information: An item is added to this column each time a user adds a favourite. - Remove items from the column so it shows 5000 or lesser items
- Open the List Settings
- Scroll down
- Under the 'Columns' section, click 'Indexed Columns'
- Click 'Create a new index'
- Add "Favourite Site User" as an indexed column to bypass the threshold limit in Sharepoint. This allows the Web Parts to work even when exceeding 5000 list items.
Testing
- Click 'Add More' under 'My Sites' and add more Favourites
- The 'My Sites' section should load without the error
Related Articles
Error: 'Failed to retrieve items!' and '503 Service Unavailable' on Bonzai Web Parts