web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get Items from SharePo...
Power Automate
Unanswered

Get Items from SharePoint is raising this error :- "The attempted operation is prohibited because it exceeds the list view threshold."

(0) ShareShare
ReportReport
Posted on by 3,506

I have this Get All Items where i define the threshold to be 100,00 as follow:-

 

johnjohn123_0-1687898162992.png

 

johnjohn123_1-1687898204890.png

 

 

now on runtime >> i will get this error , any advice how to fix this error?

 

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

 

johnjohn123_2-1687898273352.png

 

 

 

any advice please?

 

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    Set your threshold to something slightly smaller and specify a top count in the Get Items.  When pagination is enabled Top count becomes the page size that is retrieved.   Threshold becomes the total number of items that will be retrieved.  SharePoint has an administrative limit that kicks in at 100,000. This is normally experienced because if your list gets that large you can't Break security inheritance. But its also the limit on admin batch retrieval of records in on-premises SharePoint. I assume its a carry over from that. In the past the workaround for lists this large was to use indexed columns to retrieve a smaller set of content.  MS never supported retrieval of over 100,000 records at a time. SharePoint can store in the millions, but can't retrieve all of them at once.

  • johnjohn123 Profile Picture
    3,506 on at

    @Pstork1 but i am saying that i want 100,000 items only .. which should work for me.. not sure why this is not working?

     

  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    1) Make sure that the fields you are filtering on are Indexed.

    2) I still don't think you'll be able to get the full 100,000. I would decrease the Threshold until you get it to work and then keep increasing the threshold til it stops working.  It may work at 99,999 but fail at 100,000

  • johnjohn123 Profile Picture
    3,506 on at

    @Pstork1 I already have all the columns defined in the filter and in the order inside the list index. and i used top count =100 and threshold to 99999 but still i am getting the exact same error. i think sharepoint api has a bug is thaat if we define 2 filters and the first filter return more than 5000 the whole query will fail... not sure if this is the reason.. is there any workaround?

  • johnjohn123 Profile Picture
    3,506 on at

    @Pstork1 now i removed the Order by fields and the Get Item worked well .. not sure why..

     

    Also i can define one Order By field such as "DesignTypeOrder asc" but if i define 2 Order By fields i will get the threshold error again.

  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    You can't supply more than one Orderby field in the get items.

  • johnjohn123 Profile Picture
    3,506 on at

    @Pstork1 so are there any workarounds?

  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    To the best of my knowledge that is a limitation of the way that OData OrderBy queries work.

  • johnjohn123 Profile Picture
    3,506 on at

    @Pstork1 can not i for example build an array of the GetItems results without any Ordering then apply the order for the array?

  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    Yes, but the Sort() function only supports sorting by one column in the array.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard