The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
Hello @Md Atiqur Rahman
When a SharePoint list or library contains more than 5,000 items, SharePoint's List View Threshold may impact how data is retrieved and processed. As a result, users may encounter errors such as "The number of items in this list exceeds the list view threshold" when attempting to access, query, or process large volumes of data. This limitation can affect standard SharePoint views, item-level permissions, and custom solutions that use Azure Functions, SharePoint REST API, Microsoft Graph API, or CSOM when queries are not sufficiently filtered or optimized.
Although SharePoint can support lists and libraries containing well over 100,000 items, the ability to successfully execute queries against those items depends on how the data is structured and retrieved. Queries that need to scan a large number of items at once may be throttled, experience performance degradation, or fail if they exceed the List View Threshold or are not optimized through indexing and filtering.
I would recommend restructuring the data by distributing content across multiple libraries, lists, or separate SharePoint sites. Depending on your business requirements, separating large datasets into dedicated sites or subsites can help reduce the number of items processed in a single query and improve overall performance. Additionally, implementing indexed columns and applying filtered queries can help reduce the likelihood of threshold-related errors.
I hope this information helps clarify the behavior you are experiencing. Please let me know if you have any questions.