cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Johhny
New Member

Do Until running Once - Approval flow

Hello,

 

I'm having an issue with my Do Until loop only running once, maybe I'm just not understanding how the loop works exactly.

 

I set the variable to "Pending", I want it to loop and send reminders till it gets approved. Once it is approved it will set the variable to "Complete", which meets the condition and stops.

 

What happens is when it hits the 2 day mark (if they haven't approved it yet), it sends them a reminder email and the loop stops. Still waiting on Approval to go through.

 

My Flow:

 

Approval Flow - Do Until.PNG

 

Thanks,

Johnathon

1 ACCEPTED SOLUTION

Accepted Solutions
ScottShearer
Super User
Super User

@Johhny 

In the loop action, click on Change limits.  Take a look at the timeout.  By default the loop will stop after 60 loops or one hour - whichever comes first.  Is your loop timing out?  You might try setting the timeout to P30D for 30 days.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

4 REPLIES 4
ScottShearer
Super User
Super User

@Johhny 

In the loop action, click on Change limits.  Take a look at the timeout.  By default the loop will stop after 60 loops or one hour - whichever comes first.  Is your loop timing out?  You might try setting the timeout to P30D for 30 days.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

@ScottShearer 

 

Oh, so the "PT1H" will automatically do a loop for timeout? It's not based on the delay loop?

 

I'm assuming that's the issue then, thanks!

@Johhny 

Correct - your loop is timing out.  If the top of the loop is hit after 1 hour, it will time out.

Configure per my screen shot below to extend the timeout to 30 days (max time a Flow can run):

Limit.jpg

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

@ScottShearer 

 

Great, thanks for the help!

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (2,814)