# Abort

The **Abort** step stops a transformation based on incoming rows. This step is commonly used for error handling—for example, to stop processing after Abort detects an error condition in the data.

### Step name

Enter the following information in the transformation step field:

* **Step name**: Specify the unique name of the Abort step on the canvas. You can customize the name or leave it as the default.

### Options

The Abort step includes the following options:

| Option                               | Description                                                                                                                                                                                                                                                                                          |
| ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Abort the running transformation** | Stops the transformation when the **Abort threshold** is reached.                                                                                                                                                                                                                                    |
| **Abort and log as an error**        | Logs an error when the Abort step stops the transformation. This option is useful when a parent step (for example, the Kafka Consumer step) runs a sub-transformation containing the Abort step, and you want the parent step to stop.                                                               |
| **Stop input processing**            | Stops the input steps to the transformation when the **Abort threshold** is reached, while allowing any rows already retrieved or initiated to finish processing.                                                                                                                                    |
| **Abort threshold**                  | The number of rows to process before aborting after an error is detected. For example, if the threshold is `0`, Abort stops the transformation after the first row is processed. If the threshold is `5`, Abort stops the transformation after the sixth row is processed. The default value is `0`. |

### Logging

The Abort step includes the following logging options:

| Option              | Description                                                                                                           |
| ------------------- | --------------------------------------------------------------------------------------------------------------------- |
| **Abort message**   | The log message to use when the transformation is aborted. If you leave this field blank, PDI uses a default message. |
| **Always log rows** | Logs every row processed by the Abort step so you can review the rows that caused the transformation 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.pentaho.com/pdia-data-integration/pdi-transformation-steps-reference-overview/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.
