On Error Handling Workflow
If an error is raised in your automation, the On error node allows you to continue the execution of your automation by adding activities on a side workflow. These activities will be executed after the main workflow fails.
Prerequisite
You have created your automation.
Procedure
The following procedure demonstrates how to manage a failing automation with the on error node.
-
In your automation, drag and drop the activity Set Values (Cells). On the Set Values (Cells) side panel, set wrongValue in the rangeDefinition field under Input parameters. Set also a value in the values field.

By adding a Set Values (Cells) activity without opening an Excel file first and setting wrong values, the automation will fail at execution time.
-
Save and test your automation. The testing session fails.
You can review the data of your failing automation in the timeline and in the Test Console.
-
Click the Error tab at the top of canvas.
The On Error node appears.

-
Drag and drop the Log Message activity on the On error node. On the Log Message side panel, enter a message in the Input Parameters.

When the automation fails, it will execute the steps inside the On error node.
-
Save and test your automation. With the error from the first testing session, the automation still fails and the same error is displayed in the Test Console.
But after the failing step in the timeline, you can see that the Log Message activity from the On error node has been executed. The message is also displayed in the Test Console.
