cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lshake
Level: Powered On

Do Until Timeout values

I am setting up a flow that creates a task when an item is added to a Sharepoint list.  I want the flow to stop until that Task item is marked as completed.

 

In the image below, my Flow does the following:

  1. Creates the task item
  2. Sends an email informing that the task has been created
  3. Runs a "Do Until" that should run until Task Status is Completed.  It does the following:
    1. Gets the Task item fresh
    2. Sends an email (for testing purposes) telling me the task is not done

 

I'm not sure I understand the Count and the Timeout values on the Do until.  I think the Count means that it will only run the number of times that matches it's value.  I thought the Timeout meant that it would wait 2 minutes (for testing purposes) before running the Do until again.  However, the result when I run the flow is that I immediately get 5 emails from the Do until--meaning that the Do until is not waiting 2 minutes.  

 

Can you help me understand what the Timeout means?

 

Is there another way I can stop my Flow from running until the Task is marked as completed?

 

Thanks for any help anyone can offer.

 

Capture.PNG

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Do Until Timeout values

Hi @lshake,

 

Do you want to repeat the steps within “Do Until” until the task item is marked as completed?

The Timeout property of “Do Until” means that how long the loop should run. It limits the run duration of “Do Until”, if the run duration of “Do Until” is more than the value of Timeout, it will cause time out error.

 

Unfortunately, there is no any other way to achieve same effect except “Do Until” currently.

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Community Support Team
Community Support Team

Re: Do Until Timeout values

Hi @lshake,

 

Do you want to repeat the steps within “Do Until” until the task item is marked as completed?

The Timeout property of “Do Until” means that how long the loop should run. It limits the run duration of “Do Until”, if the run duration of “Do Until” is more than the value of Timeout, it will cause time out error.

 

Unfortunately, there is no any other way to achieve same effect except “Do Until” currently.

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
lshake
Level: Powered On

Re: Do Until Timeout values

Kris,

 

Thank you for your help.  

 

Yes, my goal is to repeat the steps within "Do Until" until the task item is marked as completed.

 

So, if the Timeout value just limits the duration of each iteration of the Do Until, I'm guessing I would need to add a Delay if I want each iteration to run on a set interval.

 

I will try that.  Thanks again for taking the time to help.

HelplessMax
Level: Powered On

Re: Do Until Timeout values

hi there, @lshake @v-xida-msft 

I have a similar problem but in the case of an approval within a "do until" loop connected to a variable.

Even though the approval was approved, the loop keeps on running (just like @lshake  desribed with the multiple emails)

Can you guys help me? Screenshot Flow.PNG

henrypei
Level: Powered On

Re: Do Until Timeout values

@HelplessMax 

There's another parallel branch under the approval action. What's in it?

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

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!

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 Solution Authors
Top Kudoed Authors
Users online (6,123)