Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Do the Following Untill action in Flow Designer is not working as Expected

Madhan007
Tera Contributor

Hi Everyone,

I have defined a Do the following until action in a flow where it runs until catalog task state is false. Inside the loop there is Wait for condition loop, catalog task state is false (with Timeout enabled for 24 hrs).
So even if the Until condition is never satisfied, the action started executing at 29/09/2025 with one day waiting period inside the loop could not have gone more than 62 loops until today. but the flow is throwing an error after the loop is executed for 1000 times having the Iteration limit reached.

Flow action : 

Madhan007_0-1764613195599.png

Flow Execution error sample :

Madhan007_1-1764613296956.png

 

As per logic, the Do the following until loop started executing at 29/09/2025 could not have Iterated for more than 62 times (considering until today). 

Are there any known errors with Do the following until action like while checking the until condition after going through an Iteration, even the state of task is made false, it not considering the updated value like that?

Any Insights into this is very much Appreciated. Thanks in Advance!!!


 

2 REPLIES 2

Deepak Shaerma
Kilo Sage
Kilo Sage

Hi @Madhan007 

 

Replace your "Wait for Condition" action with the explicit Wait for a duration of time action.

​Action: Logic > Wait for a duration of time

​Duration: 1 Day (or 24 Hours)

 

 

If you need more explaining, please let me know.

 

Happy to help! If this resolved your issue, kindly mark it as the correct answer and Helpful and close the thread 🔒 so others can benefit too.

Warm Regards,

Deepak Sharma

Community Rising Star 2025

SanjivMeher
Mega Patron
Mega Patron

The following link may help.

https://www.servicenow.com/community/workflow-automation-forum/flow-designer-do-the-following-until-...

 

I would check the Wait for Condition which says 1 day but got executed in 58 ms without waiting. Do you have the right time there?


Please mark this response as correct or helpful if it assisted you with your question.