Best Practices for Creating Resilient Automations
Increase the resilience of your process automations.
To ensure that your process automations run smoothly and are not interrupted by errors, you can follow some best practices when creating your automations to anticipate possible errors and manage them properly. If your automation fails, you can use support mode and traces to analyze the error and then retry your automation or resolve the error.
Use Traces to Monitor
Activate support mode for your desktop agent to record traces to monitor your desktop agent and automation jobs. For more information, see Activate Support Mode and Set Up Traces.
Retry Automation Jobs
If your automation job has failed for reasons outside of your automation, such as network problems, configuration problems or expired passwords, you can use the Retry feature in the Automation Jobs view to retry the automation once the issue has been resolved. For more information, see Automation Jobs.
Manage Errors in Automations
If your automation has failed because of errors occuring within the automation, you can use the following controls to manage errors and increase the resilience of the automations:
Use the Try Condition
You can use the Try condition control to catch known errors raised in specific steps of the automation flow and handle them on a side branch of the automation. For more information, see Try Catch.
Use the On Error Node
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 to clean up a failed automation by closing applications or files that are still open. It is good practice to start using the On Error node when you first create your automation. For more information, see Use the On Error Node.