# How to stop a run from processing if an error occurs

**URL:** https://community.synatic.com/t/how-to-stop-a-run-from-processing-if-an-error-occurs/191
**Category:** Flows
**Tags:** flows, helper-functions
**Created:** [March 10, 2022, 9:49am UTC](https://community.synatic.com/t/how-to-stop-a-run-from-processing-if-an-error-occurs/191 "2022-03-10T09:49:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![navessa](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.synatic.com/navessa/32/58_2.png) [@navessa](https://community.synatic.com/u/navessa)
#### Post date: [March 10, 2022, 9:49am UTC](https://community.synatic.com/t/how-to-stop-a-run-from-processing-if-an-error-occurs/191/1 "2022-03-10T09:49:15Z")

</div>

This feature is helpful if you want the flow to **have a completed status or a failed status**. It will **not have** a “ **Completed with Errors** ” status.

**NB:** If your flow consists of a sync flow and there is an error in the main flow before the sync flow step, this feature will break the flow on the step the error is and won’t run the sync flow.

Open the flow and click on Details as highlighted in the below image.

![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/1X/1f68646878eeae2234786edaad4660f931f54493.png)

The below page will appear. Click on the “Break On Error” check box to tick it and then click save.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/1X/67b431fc848a1fb21ae42f5b94a63eff3a0a6a6e.png)

**Additional information:**

If your flow consists of a sub-flow, condition or a for each step and you want it to break in the step if there is an error, you’ll have to do the **Break On Error in both places**.

Click on the highlighted icon that is next to the step as shown in the below image. In this example, a sub-flow is being used.

![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/1X/21242592da4a79dcd0dcd4df12dbf4224a0b6ec5.png)

The below page will appear. Click on the Break On error check box to tick it and then click on Save.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/1X/4d8e6f539c708942492cf2a05c9ed43b749c3766.png)
