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

Apply to Each Concurrency & Variables

I am finding that if I run an Apply to Each that uses Set Variable, it will seemingly pull the variable value from a different concurrent Apply to Each and mess up the math that is being calculated in any Apply to Each item.  The only way I could get math in Compose (uses the variable values) to be consistent & 100% correct was to turn off Concurrency Control.  Which, unfortunately, makes my total Flow run time go from 60 seconds to about 11 minutes.


Is this a bug?

Community Support
Community Support

Re: Apply to Each Concurrency & Variables

Hi @daviddraper2,


Could you share a screenshot of your Flow configuration?

If we can know the detailed configuration of your Flow and your specific needs, maybe we could give some suggestions to optimize the action configuration.


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.
Advocate II
Advocate II

Re: Apply to Each Concurrency & Variables

Hi I Have been suffering the same problem and found out that the Variables are Global to the flow so will get updated as the parallel threads get to them so you will get inconsistent results. I have just set the concurrency down to 1 which should do the trick.


Another option could be to use the compose function which is local to the thread



Helpful resources

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,246)