Handle a failed automation
Section titled “Handle a failed automation”This how-to is for builders whose automations talk to the outside world or do things that can fail: send an order to the ERP, email a supplier, grant access. A failed reaction shows no error to the person who set it off, so unless you plan for it, nobody notices.
You will make a failure visible on the record, tell someone, and retry on a schedule. The example sends each new order to an ERP with Call API. See Send a record to another system.
You need:
- Developer access on the module, to add fields and reactions.
- The basics of reactions. See Reactions & automation.
What counts as a failure
Section titled “What counts as a failure”- Each action succeeds or fails on its own. A Call API that gets an error answer, or no answer within its time limit, fails. The other actions of the reaction still run.
- Failed actions are not retried. Each action is tried once.
- Reaction Failed
Since 1.8runs only when every action of the watched reaction failed. If at least one succeeded, Reaction Succeeded runs instead. - The counters on the Reactions tab, and the Failed status in Reaction Logs, count a run as failed when any action failed.
So a reaction that you want to watch for failure should do one risky thing. Put the Call API in a reaction of its own, and the notifications that go with it in follow-ups.
The example
Section titled “The example”The Orders entity gets a Sync status choice field with the options Pending, Sent and Failed. New orders start as Pending.
flowchart LR A["Order created"] --> B["Send to ERP<br/>(Call API)"] B -->|"Reaction Succeeded"| C["Sync status = Sent"] B -->|"Reaction Failed"| D["Sync status = Failed<br/>+ notify the team"] E["Every hour<br/>(Timer)"] -->|"Sync status = Failed"| B2["Send to ERP again"] B2 -->|"Reaction Succeeded"| C
Step 1: Keep the risky action on its own
Section titled “Step 1: Keep the risky action on its own”- On Orders, add a reaction Send to ERP with the event On Entry Created.
- Give it one action: Call API, set up as in Send a record to another system.
- Save.
Step 2: Record the success
Section titled “Step 2: Record the success”- Add a reaction with the event Reaction Succeeded.
- In Choose Entity, choose Orders; in Choose Trigger, choose Send to ERP.
- Keep Execution Spaces at Triggering Space.
- Add Update Data Entry on Self: Sync status = Sent.
- Save.
Step 3: Mark the failure and tell someone
Section titled “Step 3: Mark the failure and tell someone”- Add a reaction with the event Reaction Failed, for Orders and Send to ERP.
- Add Update Data Entry on Self: Sync status = Failed.
- Add Send Notification to the integration team, for example
Order {{no}} could not be sent to the ERP. See Insert record values into messages. - Save.
The follow-up runs on the same order. It must exist, and be active, before the first reaction runs, and it can use that run’s data only for about ten minutes.
Step 4: Retry on a schedule
Section titled “Step 4: Retry on a schedule”- Add a reaction Retry ERP with the event Timer, Repeat, and the Cron
Expression
0 * * * *(every hour). See Run an automation on a schedule. - Add the filter Sync status = Failed.
- Give it the same Call API action.
- Add a Reaction Succeeded follow-up for Retry ERP that sets Sync status to Sent, as in Step 2.
Do not add a Reaction Failed follow-up for Retry ERP that notifies people, or they are told again every hour. The order simply stays Failed and is tried again at the next run.
Show the failures to people
Section titled “Show the failures to people”- Add a quick filter Sync status = Failed to the orders list, so the team can see what is waiting. See Offer one-click quick filters.
- Colour failed orders with a tag. See Colour records by tag.
Find out why it failed
Section titled “Find out why it failed”- On the Reactions tab
Since 1.10, each reaction shows two counts since it was last changed: successful runs and failures. System administrators can open either count to list the runs, and go on to Reaction Logs. - Reaction Logs
Since 1.10— in Administration › Monitoring › Reaction Logs, system administrators filter by reaction, event, action, Status (Succeeded, Failed or No actions) and period, and open a run to see each action’s input, output and error. For a failed Call API, the answer the other system sent is kept. Runs that the filter skipped are not logged. - On the record — in the view’s Entry history settings, turn on Reaction history, and Reaction history details to show each action’s input, output and error. See Check that it ran.
A failed run cannot be re-run from the logs. Fix the cause, then let the retry reaction, or a change to the record, run it again.
Design for a second run
Section titled “Design for a second run”- A follow-up may now and then run twice for one run of the first reaction, for example after a server restart. Make it harmless: setting a status twice is fine; creating a record twice is not, so check first that it does not exist.
- A retry sends the record again. If the other system cannot tell a repeat from a new order, send your own unique key, such as the order number, and let it ignore repeats.
Troubleshooting
Section titled “Troubleshooting”| Problem | What to check |
|---|---|
| Reaction Failed never runs, but the logs show Failed | One of the reaction’s actions succeeded. Keep the risky action in a reaction of its own. |
| The follow-up never runs | It was added or turned on after the first run, it names another entity or reaction, or its Execution Spaces is not Triggering Space. |
| People are notified every hour | The retry reaction has a Reaction Failed follow-up that notifies. Remove it. |
| The retry never picks up an order | The filter does not match: check Sync status. Archived orders are never included in a scheduled run. |
| You cannot open the counts or Reaction Logs | Both are for system administrators. |
See also
Section titled “See also”Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27