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?
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!.
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.
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.
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 🙂
Check out the News & Announcements to learn more.
Check out the new Power Platform Community Connections gallery!
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
Congratulations, the new Super User Season 2 for 2021 has started!
Read this 2021 commissioned study, conducted by Forrester Consulting.