cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
daviddraper2
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?

2 REPLIES 2
v-bacao-msft
Community Support
Community Support

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,

Barry

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.

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

 

Jambo

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (1,468)