Forum Discussion

Ankush_Daga's avatar
Ankush_Daga
Copper Contributor
Apr 06, 2020

The attempted operation is prohibited because it exceeds the list view threshold

I am using caml query as below:

 

"<View><Query><Where><And><Eq><FieldRef Name = 'NumericRecordId'/><Value Type = 'Integer'>xxxxxxx</Value></Eq><Eq><FieldRef Name = 'ContextId'/><Value Type = 'Integer'>xxxxxx</Value></Eq></And></Where><View><OrderBy><FieldRef Name='NumericRecordId' Ascending='False' /></View></Query><ViewFields><FieldRef Name='Title' /></ViewFields><RowLimit>100</RowLimit></View>"

This works fine for records less than 5000 in my document library. But once it exceeds 5000 i get threshold error.

ContextId and NumericRecordId are Indexed columns. I tried many different online solutions but not able to get through this. Any help will be much appreciated. Thanks

8 Replies

Resources