cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
livingstonep
Level 8

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
Super User
Super User

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

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!


View solution in original post

1 REPLY 1
Super User
Super User

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

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!


View solution in original post

Helpful resources

Announcements
firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,154)