Skip to main content


 

Symptoms


>Appit] 'For Each' event causing infinite looping process. How to halt the process and fix the workflow.
 

Diagnoses


By default, the 'For Each' workflow event creates two Outcomes, 'Next Item' and 'No More Items', which each come with mutually exclusive logic that checks if there's a next item to continue looping with or to break the loop. If an event that is tied to one of these outcomes is deleted, the original logic is lost, which can make the loop run infinitely.

Dragging the 'For Each' event back onto the existing one can be used to change the reference but if any outcomes already exist, it won't recreate the logic required for the loop.

There is a known issue involving not being able to stop a process instance that is stuck in a loop. If this occurs, please contact support for assistance.
 

Resolution

Compared the auto-generated outcomes in a fresh 'For Each' loop to the broken workflow and recreated the missing conditional logic in the affected outcome.




 
Be the first to reply!

Reply