Forum Discussion
The attempted operation is prohibited because it exceeds the list view threshold
jcgonzalezmartin I tried with the search api's as well and again ran into same issue after 5000 records as api returns 500 (Internal Server Error) while applying filters.
- Sudharsan KApr 13, 2020Iron Contributor
Ankush_Daga Have you tried using PnPJS with paged items method. Please refer the below link
https://pnp.github.io/pnpjs/sp/items/#get-paged-items
Please refer the below link using Search API using PnPJS
https://pnp.github.io/pnpjs/sp/search/#paging-with-searchresultsgetpage
Hope it helps, please like it or mark it as a solution if it resolves ur clarification or issue
-Sudharsan K...- Ankush_DagaApr 13, 2020Copper Contributor
Sudharsan K Thank for your response but this seems to be through javascript. I am making a call to search api through c# desktop application. So it would not be a feasible solution for me.
- Sudharsan KApr 13, 2020Iron Contributor
Ankush_Daga Can you refer the below links and let me know if it suits you.
https://www.codeproject.com/Articles/281693/Paging-SharePoint-List-Items
https://keepitsimplekarthik.com/sharepoint/listitemcollectionposition-and-pageinfo/