# Error Handling

## What is error handling?

Error handling lets you decide what happens when a step fails in your workflow. You can either terminate the entire workflow when an error occurs or allow it to continue running despite the error.

If a step's output is essential for subsequent steps, choose to terminate the workflow when that step fails. If the workflow can proceed without a particular step's output, you can configure it to continue despite errors.

<figure><img src="https://3762890407-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX2n5yPRPynbnWuO4SH0M%2Fuploads%2Fgit-blob-354d74ef2b4b7a414da4e356c548e1b2833d9e4d%2FCleanShot%202025-02-26%20at%2006.59.55%402x.png?alt=media" alt=""><figcaption></figcaption></figure>

## How to Handle Failed Steps

1. Select `Continue` instead of `Terminate Workflow` if the step fails
2. Add a conditional where the condition checks if the `error` from the step exists e.g. `step_1.error`
3. Add alternative steps or actions to execute when an error occurs

{% @arcade/embed url="<https://app.arcade.software/share/DKDlZVzy53bV2TOmBxNP>" flowId="DKDlZVzy53bV2TOmBxNP" %}
