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
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (3,117)