> For the complete documentation index, see [llms.txt](https://docs.airops.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.airops.com/docs/de/aktionen/workflow-concepts/run-once/error-handling.md).

# Fehlerbehandlung

Workflow mit verzweigter Logik fortsetzen, wenn der Schritt einen Fehler zurückgibt

## Was ist Fehlerbehandlung?

Fehlerbehandlung ermöglicht es Ihnen zu entscheiden, was passiert, wenn ein Schritt in Ihrem Workflow fehlschlägt. Sie können den gesamten Workflow entweder beenden, wenn ein Fehler auftritt, oder zulassen, dass er trotz des Fehlers weiter ausgeführt wird.

Wenn die Ausgabe eines Schritts für nachfolgende Schritte unverzichtbar ist, wählen Sie, den Workflow zu beenden, wenn dieser Schritt fehlschlägt. Wenn der Workflow ohne die Ausgabe eines bestimmten Schritts fortfahren kann, können Sie ihn so konfigurieren, dass er trotz Fehlern weiterläuft.

<figure><img src="https://1960680173-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>

## So gehen Sie mit fehlgeschlagenen Schritten um

1. Wählen Sie `Weiter` anstatt `Workflow beenden` wenn der Schritt fehlschlägt
2. Fügen Sie eine Bedingung hinzu, bei der die Bedingung prüft, ob der `Fehler` aus dem Schritt vorhanden ist, z. B. `step_1.error`
3. Fügen Sie alternative Schritte oder Aktionen hinzu, die ausgeführt werden, wenn ein Fehler auftritt

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.airops.com/docs/de/aktionen/workflow-concepts/run-once/error-handling.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
