Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Power Automate Flows Get File Properties for SharePoint throws exceeds the list view threshold

(2) ShareShare
ReportReport
Posted on by 9

This is purely for informational and learning purposes as we realized that Power Automate flows are relatively new and this problem may be minor but holds significant impact. We are in the Government Servers - cloud 365 V 9.2 UCI and we created a Power Automate flow that utilizes the Get files (Properties only) component which connects to SharePoint (in this case we have SharePoint Online) and retrieves the file properties. We use this so that we can determine the total number of files within said folder within a given Library. We noticed however that if the SharePoint folder (we are trying to retrieve) List exceeds 5000 items (Which is the limit Microsoft has set to any given folder within a library) I've added images below for better descriptions**. If this occurs, then our flow returns an error (The attempted operation is prohibited because it exceeds the list view threshold.) when we execute this component. This is because the total number of items within all nested folders exceeds 5k. 

To resolve this, you have to configure the include Nested Items (initially set to = true) to 'No' so that the flow can ignore the number of nested items and focus solely on the Limit entries to folder you are trying to drill down to and retrieve the properties for.

Threshold limit in SharePoint.

 Eceeds-Limit.PNG

Limit error message in Automate Flow

7318.Error1.png

Update the (Include Nested Items) option to No:

pastedimage1670337100979v3.png

Successful outcome after updating the Limt Entries to folder to No:

pastedimage1670337294268v4.png

Hope this helped.

Thanks.

  • Jalcock Profile Picture
    Jalcock 2 on at
    Power Automate Flows Get File Properties for SharePoint throws exceeds the list view threshold
     
    I was wondering if this would still work if a library has over 300,000 items in it? Would this action still return file(s) even when Limit Entries to Folder is set?
     
    Appreciate your response.
     
    Thanks
  • nhungle Profile Picture
    nhungle 3 on at
    Power Automate Flows Get File Properties for SharePoint throws exceeds the list view threshold
    Thank you for your solution. It has helped my Flow running again! It's a bit strange because the Get Files (Properties Only) action has been working fine until it suddenly returns empty value. I thought it has hit some API limits. Changing the "Include Nested Items" to "No" seems to get it to return value again. The folder has less than 200 files/subfolders.
  • Leron G Profile Picture
    Leron G 9 on at
    RE: Power Automate Flows Get File Properties for SharePoint throws exceeds the list view threshold

    Glad to add to our knowledge base in any way I can :)

  • Abdul Wahab Profile Picture
    Abdul Wahab 12,081 Moderator on at
    RE: Power Automate Flows Get File Properties for SharePoint throws exceeds the list view threshold

    Hi Leron G,

    Interesting one. Thanks for sharing.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans