cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Kudo Commander
Kudo Commander

Strange timings in running MS Flow Do...Until step

We have built an approval flow with a parallel branch that executes a Do..Until step until the item is approved (which sets a variable)...

 

It's built so that every 7 days an email reminder is sent.

 

The reminder branch logic is as follows:

  1. Delay of 1 hour.
  2. Every 24 hours the DayCounter is incremented by 1
  3. When the DayCounter variable >24, send a Reminder email

 

It has been running for 6 days as you can see in the below image.

MS Flow - Do..Until strange running times.PNG

But why does the Do...Until only go up to 60?

 

here are larger pictures of each part:

MS Flow - Do..Until strange running times 1.PNGMS Flow - Do..Until strange running times 2.PNGMS Flow - Do..Until strange running times 3.PNG

In the pictures are three circled areas:

  1. showing the execution date/time - 8th January - which is 6 days ago
  2. showing the time expended on the Legal approval condition branch
  3. showing the number of iterations the Do...Until step has run ... but which only goes up to 60, even though it should be at least 6 days * 24 hours = 144 iterations

so what is happening here?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Hi @livingstonep 

By default, a Do Until action will only execute a maximum of 60 times. This can be configured within the action to allow for more executions. Increase the Count property on your Do Until action to at least 144 to cover the number of loops that you require (this can be set to a maximum of 5000). I would have thought that you would also need to adjust the Timeout property but you may have already done this if your Flow is running for 6 days.

 

image.png

 

Hope that helps.

 


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


Follow me on Twitter at @QG_LeeJHarris

Or on LinkedIn at in/leejharris

View solution in original post

1 REPLY 1
Highlighted
Super User
Super User

Hi @livingstonep 

By default, a Do Until action will only execute a maximum of 60 times. This can be configured within the action to allow for more executions. Increase the Count property on your Do Until action to at least 144 to cover the number of loops that you require (this can be set to a maximum of 5000). I would have thought that you would also need to adjust the Timeout property but you may have already done this if your Flow is running for 6 days.

 

image.png

 

Hope that helps.

 


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


Follow me on Twitter at @QG_LeeJHarris

Or on LinkedIn at in/leejharris

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Users online (11,183)