# 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="/files/lIBuGuZflfTdT9TanUN2" 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" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.airops.com/actions/run-once/error-handling.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
