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

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!


Follow me on Twitter at @QG_LeeJHarris

Or on LinkedIn at in/leejharris

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!


Follow me on Twitter at @QG_LeeJHarris

Or on LinkedIn at in/leejharris

View solution in original post

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Users online (8,137)