Use the On Error Node

Use the On Error node to add activities to a side branch that is run when an uncaught error is raised in your automation.

Prerequisites

You have created an automation.

Context

You can use On Error node when you create an automation to add activities to a side branch that runs when the automation fails. You can use the activities in this flow to log and analyze errors and clean up or revert a failed automation by closing applications or files that are still open, before the agent starts another automation job. It is good practice to start using the On Error node when you first create your automation.

Procedure

  1. Open your automation in the automation editor.
  2. Toggle to the Error tab at the top of canvas.

    The On Error node appears.

  3. Drag and drop activities from the automation panel into the On Error flow.

    For example, it makes sense to use the Log Message activity to log errors.

    You can access and manage an error object in the On Error automation branch.