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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow Runs Slowly - App...
Power Automate
Answered

Flow Runs Slowly - Apply to Each

(0) ShareShare
ReportReport
Posted on by 14

I have a flow that runs slowly based on the Apply to Each that I have built.  The loop is built with only 4 actions, runs concurrently with 2 degrees of parallelism, and is mirrored with 3 other parallel branches for a total of 4 Apply to Each actions running simultaneously (2 degrees of parallelism each).  I can't increase the degrees of parallelism as I run into SharePoint API call limitations very quickly with anything higher.  They run in variable loop length based on outside input, up to the max of 1250 iteration.  I initially built the flow with a single Apply to Each and other actions were based on it with the 5000 max.  I segmented the Apply to Each to cover all 5000 (max) for easier error handling in the future.

When the flow runtime is long (many hours, close to, or even over an entire day) I expand the branches (usually 2, sometimes 3) to look through each iteration to find at least one example of what is causing them to run slowly; however, each loop count I look at has very short run times, with each of the 4 actions taking only 0-4 seconds on average, and it's impractical to look at thousands of iterations to find one example that causes the slow performance.

 

Is there a way to search for the outliers in an efficient way to troubleshoot better?  A run export or something else, maybe?

Categories:
I have the same question (0)
  • Verified answer
    Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hello @ToddCaywood 

     

    This is caused from hitting your Flow limits for the day.


    which license do you have for Flow? You will either need to upgrade, or find a way to use less API calls. Apply to each loops eat away at your daily limits.

     

    https://docs.microsoft.com/en-us/power-platform/admin/api-request-limits-allocations

  • ToddCaywood Profile Picture
    14 on at

    Ah you're right, thanks!  Our company has the Office license for each employee, so a 2k limit will get eaten up VERY quickly.

    I don't think I can reduce the # of API calls, unfortunately.  I'm creating items in a SharePoint list based on templated Excel files, one item per line, each file capped at 5k lines (plus header).  Thankfully, the flow doesn't get used frequently, the busiest time would likely be once a day for a few days.

  • takolota1 Profile Picture
    4,978 Moderator on at

    If anyone runs into call limits, throttling, or other performance issues when creating, updating, or deleting many items then you may find these 50-1000x more efficient batch templates useful…

    Sharepoint

    Update, Create, & Upsert- https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/Batch-Update-Create-and-Upsert-SharePoint-Lists/td-p/1365410 Create- https://www.tachytelic.net/2021/06/power-automate-flow-batch-create-sharepoint-list-items/?amp

    Delete- https://www.tachytelic.net/2021/06/power-automate-delete-sharepoint-items/

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 60 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 54

#3
Expiscornovus Profile Picture

Expiscornovus 47 Most Valuable Professional

Last 30 days Overall leaderboard