cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jpirelli
Microsoft
Microsoft

Triggering multiple instances of the same flow simultaneously?

Yesterday I was testing my BOT which calls a flow to create an ICM ticket. In doing so, I ran into an unexpected, and untrapped error in the dialogue JSON which really threw me for a bit of a loop. Basically, due to a wait step in my process, I had attempted to trigger the flow again before the previous run had completed. I wasn't aware that you could only instantiate a single flow at a time and I was curious if there is a way around that particular restriction or do I need to get a bit more creative with my solution to reduce the chance of collision?

 

 

5 REPLIES 5
Dhina
Frequent Visitor

Hi @jpirelli 

 

Please try the below steps and see if it resolves for you.

 

1. Go to Settings of the first Flow Step.

2. Turn on the Concurrency control and set the Degree of Parallelism to 1.

I have attached an image for you reference.

 

Hope it works!.

 

Best,
Dhina

Hi Dhina,

 

Happy to be wrong on this. If you change the degree of Parallelism to 1 then you need to change your Flow to be asynchronous. I could not get my Bot to call an Asynch Flow. I would have been surprised if it did as it would require a callback of some type from Flow to PVA.

 

I was able to add a  10 delay to my flow and call it from multiple Bot sessions without any problem.

 

Joe

jpirelli
Microsoft
Microsoft

I did a bit more testing, by default, flows can run concurrently. This is great info but maybe a red herring on my errors last night. I was able to reconfirm that multiple instance are able to run at once.

 

I'll keep working on my repro, this could have been a red herring entirely.

 

Dhina
Frequent Visitor

Hi JoeGill,

 

You are right. This makes it want to run as asynchronous, so we are pretty much not able to leverage the concurrency control feature as we typically use "Response" action as part of Power Automate with PVA.

Thanks for pointing out, JoeGill 🙂

 

Best,

Dhina

MarKol
PVA
PVA

Your should be able to trigger the several instances of the same flow to run at the same time from PVA, this is supported.

Helpful resources

Announcements
PVA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

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.

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Center-of-Excellence-Starter-Kit-cropped 768x460.png

The Total Economic Impact™ of Power Virtual Agents

Read this 2021 commissioned study, conducted by Forrester Consulting.

Top Solution Authors
Top Kudoed Authors
Users online (2,274)