# Abort

<img src="/files/TIK1cPTHRM97XuHVP3l4" alt="" data-size="line"> Abort

### Description <a href="#description" id="description"></a>

The Abort transform aborts a running pipeline as soon as it receives input data. The main use case for this transform is to throw an error when an unexpected or unwanted situation occurs.

For example, you can use this transform so that a pipeline can be aborted after x number of rows flow to over an error hop.

| <h3 id="supported_engines">Supported Engines</h3> |
| ------------------------------------------------- |

| Hop Engine | ✓ |
| ---------- | - |
| Spark      | ✓ |
| Flink      | ✓ |
| Dataflow   | ✓ |

|                |                                                               |
| -------------- | ------------------------------------------------------------- |
| Transform name | Specify the unique name of the Abort transform on the canvas. |

### Options

| Option                     | Description                                                                                                                                                                      |
| -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Abort the running pipeline | Stops the pipeline when the Abort threshold is reached.                                                                                                                          |
| Abort and log as an error  | Logs an error report when the Abort transform stops the pipeline. Useful when a parent transform executes a sub-pipeline containing the Abort transform.                         |
| Stop input processing      | Stops input transforms when the Abort threshold is reached, but processes already retrieved records.                                                                             |
| Abort threshold            | Specifies the number of rows at which to abort the pipeline after an error is detected. For example, `0` stops after the first row, `5` stops after the sixth row. Default: `0`. |

### Logging

The Abort transform features the following logging options:

| Option          | Description                                                                                                                                                                                                                              |
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Abort message   | The message to put in the log upon aborting. If not filled in a default message will be used.                                                                                                                                            |
| Always log rows | Always log the rows processed by the Abort transform. This allows the rows to be logged although the log level of the pipeline would normally not do it. This way you can always see in the log which rows caused the pipeline to abort. |


---

# 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-shaper-1.21/knowing-the-data-shaper-designer/pipelines/transforms/abort.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.
