Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

A flow with Apply to each takes never completes

Hey community! Need your help on this one!


I have a flow with an apply to each loop, making http calls for each item in the list. The whole process usually takes about 5-7 minutes to complete. I have even set timetouts on request to ensure it won't get stuck. The Flow is recurrent and runs every 5 minutes. Problem is, sometimes, the loop gets stuck forever. At least, I noticed today one instance ran for 19 hours, starting yesturday. If I cancel it and go in the run details to inspect, I see nothing running for more that a few seconds, except the global loop running time which is at 19 hours. Even the last item was processed within a second.


Oh and I even optimised the flow to remove any set variable, I use compose instead. I also added a safety check for running time but it's not hitting it since it's at the end of the loop itself, no further task is executed.


I even used FlowStudio to inspect the details and nothing took more that a few seconds to execute. It looks like a bug to me with the loop but maybe one can have a different input on that or a workaround. It's happening at least once a week and it happend twice this week already. Any idea?


Annotation 2019-10-17 111249.png



Community Support
Community Support

Re: A flow with Apply to each takes never completes


Hi @nicolasdb ,


Please try setting Apply to each, and set the Degree of Parallelism to the maximum, then check if it improves your situation.

Image reference:




Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Helper I
Helper I

Re: A flow with Apply to each takes never completes



That's a good idea but unfortunately I can't activate parallelism sinc this can cause conflict as 2 tasks can update the same DevOps WorkItem at the same time. This results in an update error. I know it takes a little longer to run but it's usually not that bad!

Helper I
Helper I

Re: A flow with Apply to each takes never completes

I created a bug report with this. You can find it here: Post #388983 

Helpful resources


Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!


Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,725)