How to handle errors in your automation
Axiom.ai features a range of steps and methods for handling errors. For example, to catch an error and execute a different set of steps, use our 'Try/Catch step'. To ignore errors completely, use the 'Continue on Error' setting.
# Use the Try/Catch step to intercept errors
Adding steps inside a "Try/Catch" step allows for the catching of errors that may occur in automations. When the automation runs, this step will run the sub-steps inside of it. If an error occurs, the steps inside of the catch section of the step will be executed.
For example, you may add a step to scrape data from a webpage to the 'Try/Catch' step, if this fails because the content was not found on the page, the steps in the catch section of the 'Try/Catch' step would be executed. If the 'Try/Catch' step was not used in this instance the whole automation would have failed.
# Using the "Continue on error" setting
By default, Axiom.ai will stop running when it hits an error as this will prevent unexpected side effects. To disable this safeguard you can enable the 'Continue on error' setting within your automation. See "Continue on error" in automation 'Settings'.
# Ignore errors on the first iteration of a loop
By default, when processing a loop, if an automation encounters an error on the first row, a warning will be created instead of an error.
# Receive notifications about run status
Notifications can be enabled within an automation on the status of completed runs, notifications can be enabled for the following events:
- When a run fails.
- When a run succeeds.
- When a run succeeds with warnings.
These notifications can be sent via email or webhook.