0

I have the Workflow tasks list which contain 42,613 items. and inside a list view i have those filtering and sorting (where all the columns are indexed):

enter image description here

enter image description here

enter image description here

But when we access the list view we got this threshold error:

enter image description here

Although those columns involved in the filter and sort are indexed as follow:

enter image description here

And the Item count is set to 50, as follow:

enter image description here

Any advice on this please? how we can overcome the threshold error?

2
  • Have you set the item limit in your view? Commented Dec 14, 2022 at 16:17
  • @CallumCrowley yes it is set to 50 items
    – John John
    Commented Dec 14, 2022 at 16:37

2 Answers 2

1

This is a known issue with SharePoint list view filters and SharePoint REST APIs filters.

If the filter query (or first part of filter query) returns more than 5000 items it will throw an error.

This will not work even if you are indexing the columns. Try using the filter query where the number of items returned by the first part of filter query will be less than 5000.

Similar thread: SharePoint REST limitation?

1

Do you have more than 5000 items that are newer than 165 days? I believe the filters applied in the query are evaluated in the order you specified them and if your first condition exceeds 5000 items the other conditions will not be evaluated anymore because that would exceed the threshold. Although you only might have a very small number of actual items meeting all criteria. I only encountered this with "equals"-conditions, so the "greater than" and "begins with" conditions might complicate this even further.

1
  • Correct, ordering is the key. Commented Dec 14, 2022 at 22:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.