Loops - Do the following until reaching Max iterations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2025 10:06 AM
STEP 23 : Create Task-3
STEP 24 : Action 3 -- generate Payload for playbook-3
STEP 25 : Do the following
STEP 26 : If Task 3 is closed
STEP 27 : Subflow --
STEP 28 : If the task 3 is successful --(meaning the playbook 3 ran successfully)
STEP 29 : Action to fetch the data from Playbook 3 ---This action has 2 output which is overall_validation(true or false) and connection_validation status
STEP 30 : if the overall_validation is true
STEP 31 : Update Catelog task record (task3) to "work in progress" just to update the worknotes stating " all is good"
STEP 32 : Update Catelog task record (task3) to Close Complete
STEP 33 : EXIT loop
STEP 34: Update Catelog task record (task3) to "work in progress" --because this state is " if condition false"
STEP 35 : wait for 1 min
STEP 36 : ELSE
STEP 37: end flow
STEP 38: until task 3 is close complete
Problem Statement : i have a task 3 created and there is manual closure and once the task 3 is closed there is an action to generate the payload and then action to launch api job to playbook 3
in the playbook 3 we validate the condition and set to true to false
now if the playbook 3 is successful meaning the playbook 3 ran successfully without erroring and then we check of overall_validation which is boolean , if this is true we are good
in order to update the work notes for task 3 which was close manually , i will just change the status to " work in progress" and update notes and then close complete
Now i exit the loop which means i am out of do untill loop
now when the over_all status is false which is what i am testing , i change the task status to work in progress
and wait for a min and hit the do until condition , here the until condition is to check the state if task 3 to close complete and my expectation here is the loop wait for manual closure of task 3
issue : i get error stating Max iteration reached
what i need help from community is
is the design what i put in make sense or shall i get rid or do until condition and start if condition and go back ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2025 10:29 AM
Max iterations reached suggests you are doing something a whole lot of times in your flow. However, the level of detail your have provided does not show enough to identify where this happening. You show steps 23 through 38, what else is happening? You show an Exit Loop at step 33 but I can't see where that loop starts given the detail you have provided.
Without more context it appears that you are looping through something at a high frequency which if not limited properly will very easily hit maximum iterations and cancel the flow. You should be able to use a wait until condition to avoid this but without understanding the loop more concisely its hard to provide a more specific answer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2025 11:09 AM - edited ‎06-19-2025 11:19 AM
thanks for the response , i have attached the image and hope this gets more details
i just tested the condition where the line item 30 in the image which is " IF playbook 3 ALL connection and LLDP status good" if this is true
This works as expected it exited the loop and comes out of do until and
at Step 40 which is creation if task 4 ---works as expected
the only thing which is not working is when the Boolean is false for line item 30 mentioned in image
expectation was change the task status to " work in progress" and wait for manually closure and as the until condition is not met which is task 3 state to " close complete"