Error Handling
The Error Handling action provides an execution route for any unconnected failure route in a trigger. It is only available via the The Canvas Editor toolbar. Only one instance of it may be placed in a trigger.
Routing tab
The On Result column provides one route for the action:
Parameter | Description |
---|---|
Success | The route to take for when an unconnected failure route is taken. |
Example Error Handling
Below is an example trigger with an Error Handling action defined.
Without an Error Handling action defined, if the unconnected failure route is taken from any action the trigger will end with a failure status.
In the above example trigger, if the unconnected failure route is taken, the E-mail action will be executed.
The failure route on the email action is connected to an End Execution action. If it is unconnected, it would be routed to the Error Handling action and the potential for an infinite loop would exist.
Any actions can be in the execution path after the Error Handling action, including routing back into the main body of the trigger. As with all triggers, success and failure execution paths should eventually lead to the trigger ending its execution. Defining a trigger that gets into an infinite loop will cause execution problems for the system.