Flow may get stuck in an infinite loop if you there's a flow action causing it's trigger event to be invoked. An infinite loop can occur when 2 flows are triggering each other, or a single flow executing an action that invokes its trigger event.
Example
In this example, flow gets triggered whenever a contact is saved. On step 2, we will assign tags to the contact. Since Add Contact to Tags
action will update the given contact, it will trigger Contact (Saved)
event.
When OnVoard detects an infinite loop in your flow, we will update flow status to Failed.
To get the flow back to Active state, go to flow editor and fix the infinite loop issue. Then click Reactivate from error modal.
Resolving Infinite Loops
To prevent infinite loops, you can add a filter step to conditionally execute action. In our example, we'll add a filter step to check if contact has already been assigned with "Prospect" tag. Flow will only proceed to action step if tag has not been assigned.
Common Issues
By far the most common trigger that causes infinite loops issue is Contact (Saved)
. Below is a list of flow actions that will invoke Contact (Saved)
trigger. Avoid these actions if you are using Contact (Saved)
trigger. Or use filter step to prevent infinite loops.
OnVoard Contact
- Save Contact
- Add Contact to Lists
- Remove Contact from Lists
- Add Contact to Tags
- Remove Contact from Tags