> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/harness-platform/use-harness-platform/pipelines/failure-handling/mark-step-as-failed.md).

# Mark Step as failed

You can mark a specific step as failed during pipeline execution by selecting the step and using the `Mark As Failed` option.

It is a manual action that you can perform to mark a step as failed. This action is extremely useful when you have multiple steps running in a parallel step group, and you wish to mark a running step as failed.

* Allows you to abort a step that is running and needs to be stopped.
* Allows other steps in the step group to continue running unless they are also marked as failed.
* Triggers a configured failure strategy after the step is aborted.

### Requirements <a href="#requirements" id="requirements"></a>

* You must have `Execute` pipeline permission to be able to mark a step as failed.
* You must enable `Allow users to mark a running Step as failure` in your Harness account's [default settings](/harness-platform/use-harness-platform/settings/default-settings.md).

![](/files/oCBNDzSQSN9BRRU53GzB)

### Configure failure strategy <a href="#configure-failure-strategy" id="configure-failure-strategy"></a>

Failure strategies define the actions to take when a step fails. You can configure failure strategies for different failure conditions.

If a step marked as failed has no specified failure strategy, Harness uses the default failure strategy.

To configure a failure strategy for manual step failure:

1. In your pipeline, select the step where you want to configure a failure strategy.
2. Select the **Advanced** tab.
3. Under **Failure Strategy**, select **Add**.
4. For **On failure of type**, select **User Marked Failure**.
5. For **Perform Action**, select the desired action to take when the step is marked as failed, such as **Rollback** or **Retry**.
6. Select **Save**.

![](/files/bConjMKMKYS2RaLsSORt)

### Mark a step as failed <a href="#mark-a-step-as-failed" id="mark-a-step-as-failed"></a>

To mark a step as failed during pipeline execution:

1. [Go to the execution details](/harness-platform/use-harness-platform/pipelines/executions-and-logs/view-and-compare-pipeline-executions.md) for a currently-running pipeline.
2. Select the step you want to mark as failed, and select **Mark Step As Failed**.

![](/files/blr8nh2mNZebAmsbPn6Y)

3. Select **Confirm**.

In the execution history, the step's **Error Summary** reports `User Initiated Failure`, and the step's failure type is `USER_MARKED_FAILURE`.

![](/files/Rt7ns7NN0nEEHnLaPybY)
