# Fix a failed run

Find the step that failed, read why, correct the automation and make sure the next run goes through.

Source: https://support.rework.com/article/fix-a-failed-run

Sooner or later a run fails: a partner's address changes, a password expires, a form sends a field in a new format. The good news: the cause is easy to find, because a failed run stops exactly at the step that broke and records the error it hit. This guide walks through a real example, _Sync signed contracts to billing_, whose call to the billing system failed.

> **Note:** Fixing the automation means editing and publishing it, which the automation's creator and Automation app admins can do. Anyone who can open the automation can read the failed run.

## Step 1: Find the failed runs

- On **Overview**, the **Attention needed** banner counts the runs that failed in the last 24 hours. Click **View failed runs**.
  

![The Attention needed banner with the View failed runs link](https://storage.googleapis.com/reworkv3-public/success/260923/zv0EgUxuo4txaqdOE47lhdLcKSA8pC4eWPPPGUn3YfRCPEg3Qt1rLxJFbRKCQlhe/img.GfZxnxeM5WA7r8hX5yGxdVXJmGQtY5FXliHjC4BSkeZj4oN4qEbywsUBqVQabGPX.png)

- The **All Runs** page opens filtered to **Partially failed**. Click the run you want to investigate.
  
- On the canvas, the step that failed is red and marked **Failed**. Click it.
  

![The failed run with the failed HTTP request step and its error](https://storage.googleapis.com/reworkv3-public/success/260923/xEBCeiAorc8yy2p6Vj5SLnHMbmptXnvsWpo2W8Hm2SJer9RuSmkRYL9QibNlQvE6/img.tEStNe4QQS6T3RY5nyPjSd6Th4xh7nzxoBBVonlVRuO8TgWv1ooHIrVEO5Tx36gV.png)

## Step 2: Read the error

The red message at the top of the result tells you what went wrong, in this case _This URL is not allowed: the address could not be resolved._ Under it, **Input** shows the values the step really used, which is usually where you'll spot the mistake. Here, the URL points to a billing address that doesn't exist.

![The error message and the input values of the failed step](https://storage.googleapis.com/reworkv3-public/success/260923/W0DxqiHBbplaOTzVmGazLpipLvRHcKJBK9Phobsj8tCn6B7p9YfQ65Qg4YySQ3Hb/img.XLaln5xVtEEYXiZ3KfqsiZDNGP2CVKMoOV6omkk4MYRGxD02jblGwfgVc4ILPAwh.png)

Common errors and where to look:

| Error mentions | Usually means | Where to fix it |
| --- | --- | --- |
| URL not allowed, could not be resolved | The address is wrong, internal, or no longer exists | The step's **url** field |
| Timed out | The other service did not answer in time | Check the service, then try again later |
| Connection not found or disabled | The saved credentials were deleted or turned off | **Connections**, then the step's connection field |
| A required field is empty | A token pointed at data the trigger did not send | The token in the step, and the data the caller sends |

## Step 3: Check what the failure affected

Steps after the failed one didn't run. Click one and its result says **This node didn't run in this execution.** In this example, the confirmation email to Tracy was never sent, so nobody was told the contract had synced.

![A step after the failure that did not run](https://storage.googleapis.com/reworkv3-public/success/260923/fvv1EAHubP7Yg6QXhIGRtHMra1bZNkz4mD1qkV5MrN7jw2UdhxEK5bm2AMjRKwK1/img.sKZytmodegeijUENsdgFiOFbm1HTIyfqyETts8ph7FES9M7yEfC8RPKcyLSwbTrS.png)

## Step 4: Correct the automation

A run can't be retried from the run page. Instead, you fix the automation, then let a new run go through.

- Open the automation and go to the **Builder** tab.
  
- Click the step that failed and correct the field the error pointed to, for example the **url**.
  
- Click **Save** at the bottom of the panel, then **Test step** to run that one step with the new settings. See [Test a step before you publish](https://support.rework.com/article/test-a-step-before-you-publish).
  
- When the test succeeds, click **Publish**.
  

![The failed step open in the Builder with its URL field and Test step](https://storage.googleapis.com/reworkv3-public/success/260923/W5GOu8CZCaWh8EnTkgKjskdxABxCI7ik3fV8iz8qqcpVrZfshBTUS91jiMh7rkPl/img.1nWnp2RgFHATjz7iYxD7MAzKXh59lLXe1kUC6jtKWCmvOUdO1I5gR5HXnSNEKHfd.png)

## Step 5: Run it again

Publishing doesn't replay the failed run. To get done the work the failed run missed:

- For a **Webhook** automation, ask the sending system to send the event again, or replay the captured payload from the **Test** panel with **Execute**. See [Test the whole flow](https://support.rework.com/article/test-the-whole-flow).
  
- For a **Schedule** automation, wait for the next scheduled day, or use **Run now** in the **Test** panel.
  

Then open **All Runs** and check that the new run is **Completed**. ✅
