# How do I trigger a task if at least one of a set of tasks fails?

Triggering an error notification email if one or more tasks fail from a set of multiple tasks is a common use case. Multiple incoming workflow links to a workflow task object by default operate with AND combination logic. &#x20;

In the following workflow, if all of the linked tasks, RunDataflow, RunDataflow1, and RunDataflow2, fail, the SendMail task will be triggered.&#x20;

<figure><img src="/files/j3V6bDzWhX0ICV5kAoGK" alt="" width="563"><figcaption></figcaption></figure>

If you want SendMail to be triggered if one or more tasks fail, you can use the OR object. With this flow, if one or more of the dataflows fail, the OR object will return a True, and the error notification email will be triggered.

<figure><img src="/files/jq0EDQtmq8Q3CoMhgInr" alt="" width="563"><figcaption></figcaption></figure>


---

# 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://documentation.astera.com/faqs/workflows/how-do-i-trigger-a-task-if-at-least-one-of-a-set-of-tasks-fails.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.
