I'm having a strange issue with PowerAutomate.
I have a basic Cloud Flow which consists of the following steps:
- Dataverse connector (a simple query: list EventEditions)
- For Each (EventEdition)
- Dataverse connector (a simple query: list CustomerProfiles)
- For Each (CustomerProfile)
- Dataverse connector (a simple query: list WebEntries)
- For Each (WebEntry)
- Compose a string with CustomerProfile and WebEntries
The issue is that, while when I call the flow for one EventEdition (the most outer for each), it takes 30 mins at most (it is for the EventEdition with the largest data), a run for all EventEditions takes longer than a day. The number of EventEditions is 11, the flow for the largest one takes 30 mins at most, and most of them take only a few mins.
- Handling each EventEdition in separate flow instances: 30 + 6 + 5 + ... ~= 1 h
- Handling all EventEditions in the same flow instance: > 24 h
What would cause this?
I'm trying the simplest approach to overcome this which is to run the flow for each Event Edition sequentially. To do this, I set the Degree of Parallelism of the relevant ForEach components to 1 to make them run sequentially. But it seems this doesn't impact the running time.
If my explanation is not clear or detailed enough, I'll update it based on your comments.
I'd really appreciate your comments and suggestions on this. Thank you in advance.
Edit: Adding a screenshot of the flow.
The main flow, including one child flow.