Handle errors in workflows
Control what happens when a block fails during a workflow run.
Available on all plans.
Available for all workspace members.
By default, when a block fails during a workflow run, the run fails and stops executing. Error handling lets you configure what happens instead.
By enabling Continue on error on a block, you can stop the error from failing the run and continue another path of steps based on the error outcome. For example, you can notify your team of a failure, undo changes made by earlier blocks, or skip a block that fails to process in a loop.
Configure error handling
Error handling is configured individually for each block in your workflow. By default, continue on error is disabled for blocks.
When you enable Continue on error, an Error outcome is added to the block.
If the block succeeds, the workflow follows its usual path.
If the block fails, the workflow follows the Error path instead.
If the block fails, and no blocks are connected to the Error outcome, the workflow ends without failing the run. Within a Loop block boundary, the loop moves on to the next item.
To configure error handling:
Open the workflow.
Click the block you want to handle errors for.
In the right-hand panel, enable Continue on error.
If you want to run additional blocks when the block fails, connect more blocks to the Error outcome.
Publish the workflow.
Note: Error handling isn't available on trigger blocks. Some errors, such as internal system errors and empty variables, always cause the workflow run to fail, even when Continue on error is enabled.
Handle specific errors
To run different blocks depending on why a block fails, you can configure separate error outcomes for specific types of errors.
The errors available depend on the block, including blocks provided by third-party apps. For example, record blocks can handle Duplicate unique value errors, while the Enroll in sequence block can handle Recipient is unsubscribed errors.
After enabling Continue on error on a block:
Click Handle specific errors.
Select the errors you want to handle separately. Each selected error appears as its own outcome on the block.
Connect each error outcome to the blocks you want to run when that error occurs.
Optionally, connect the Other errors outcome to handle errors you haven't selected.
Errors that you haven't selected follow the Other errors path. If any error outcome is left unconnected, the path ends without failing the run.
Review handled errors in the run viewer
When a block encounters an error and continues on error, the run viewer displays its status as Continued on error instead of failed. Click the block to see the error message in the right-hand panel.
A workflow run can complete successfully even if one or more blocks encounter handled errors. To be notified when a block encounters a handled error, you can add a Slack message or Create task block to its error path.
Learn more about inspecting workflow runs in Troubleshooting workflows.
Example use cases
Explore the following example workflows to see how error handling can be used in different scenarios.
Skip failed items in a loop
Scenario:
A workflow uses a Find records block to find companies, then a Loop block to update each company. By default, if the Update record block fails for one company, the entire run fails and the remaining companies aren't updated.
Solution:
To continue processing the remaining companies, enable Continue on error on the Update record block inside the loop. Optionally, connect the Error outcome to a Create task block so your team can review the company that couldn't be updated.
Notify your team of an error
Scenario:
A workflow receives data from a billing tool through a Webhook received trigger, uses a Parse JSON block to parse the data, and creates customer records. If the billing tool changes its payload format, the Parse JSON block may fail.
Solution:
To notify your team when this happens, enable Continue on error on the Parse JSON block, select Doesn't match schema, and connect that outcome to a Slack block that posts to a channel such as #revops-alerts.
Undo changes made by earlier blocks
Scenario:
A workflow adds a person to an Outbound prospects list and then enrolls them in a sequence. If enrollment fails because the person has unsubscribed, the person remains on the list.
Solution:
To prevent the person from remaining on the list, enable Continue on error on the Enroll in sequence block, select Recipient is unsubscribed, and connect that outcome to a Delete list entry block that removes the entry created earlier in the workflow.
Related resources
Build and publish your first automation with Create a workflow.
Check what each block does and which inputs it needs in the Workflows block library.
Inspect runs, retry failed runs, and fix common error messages with Troubleshooting workflows.
Frequently asked questions
For blocks that Attio retries automatically, the error path is followed only after all automatic retry attempts have failed.