# Error handling workflow templates

Error handling workflow templates are crucial in Data Mover, facilitating the management of errors during contract execution.

These templates trigger automatically when a workflow template tied to a contract encounters an error.

Two distinct error workflow templates are available for selection in the **Actions** section of input, mediation and output contracts:

* **ehwft\_logAllVariables**: this template captures and logs all error-related variables from the parent instance, storing detailed logs in the messages.log file for future analysis and troubleshooting.
* **ehwft\_notifyError**: this template collects all variables from the failed parent instance. Instead of logging the error, it sends a prompt notification via the Notification Channel to inform relevant parties.

<figure><img src="/files/Z4dW5837WtdmD7XPTn0w" alt="" width="354"><figcaption></figcaption></figure>

The Error workflow template is selected when defining the Action of any type of contract following these steps:

1. In the **Error Handling** pane, enable the **Enable Workflow error handling** toggle button. &#x20;
2. Select **ehwft\_logAllVariables** or **ehwft\_notifyError** according to your needs.&#x20;

<figure><img src="/files/ow6nIlfbrBjKU0AzZ2Gk" alt=""><figcaption></figcaption></figure>

Depending on the selected template and applied configuration, detailed logs will be listed in **Monitoring** → **Logs** and in the messages.log file of the STENG or sent as a notification to the relevant parties.


---

# 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.primeur.com/data-mover-1.21/workflow-templates/error-handling-workflow-templates.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.
