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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,653)