A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Hi @IniobongNkanga-8038 ,
The reason why SharePoint only works with 5K items is due to the list view threshold limit of 5,000 items for a view. If the list or library exceeds this limit, you will receive an error message when you try to sort or filter a column in the view. To resolve this issue, reduce the number of items in the view for the affected list or library to 5,000 items or less.
As a workaround, you can selete ALL of the items in the library (send them to the recycle bin). Then you can turn on the Indexes, and then restore the deleted items from the recycle bin.
If the answer is helpful, please click "Accept as Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.