I have a flow (say x) which is called by other flows multiple times. In the flow x, I am reading an Excel file but I have noticed the flow x stocks in a loop that contains reading from this Excel file. I guess this happens as reading this Excel file is time-consuming and since flow x is running several times it kind of creates a deadlock on this Excel file. How can I solve this issue?
Part of flow X contains reading this Excel file.
and the run history of flow x:
The red ones are those ones that I canceled manually. As shown above, this happens after some successful runs.
This Excel file is located on our SP site and only reading is done on this file.
About hours later: The run history of the same flow (flow x)
Plz note the increase in the duration of the execution of this flow after continuous calls.
Not sure if this helps: I put flow x under pressure today and noticed the below error:
{ "statusCode": 429, "message": "Rate limit is exceeded. Try again in 14 seconds." }
Above is the error is shown by the red Exclamation mark as shwon below:
It has some suggestion about reducing the use of Excel Online, how can I do it? Is there any other kind of storage that I can the content of the Excel file without having this issue? Unfortunately, I do not have access to any kind of db.
And, is there is a way to stop all the running flows at once? Found this, very helpful : http://www.dynamicscrm.blog/power-automate-cancel-all-running-flows/
Any help is highly appreciated.
Update
I have added some delay actions with rand (30,60) in all the flows, and now it seems everything working fine. I will report back on this later but also appreciate a better solution.-> helped but not 100 bullet proof solution, still gettign those deadlocks