Retries, fallback paths and alerts

Set up a workflow so a failed step retries when that is safe, and alerts a person when it is not.

Mei Ling runs a centre that gets enquiries from parents. In Lesson 7.1, How automations fail, and why you often do not notice, a broken connection lost a week of enquiries. Mei Ling only found out when a parent called to complain.

After that, Mei Ling wanted two things. The first was automatic retries for passing failures, such as a brief outage. The second was same-day notice of real failures, so the news no longer came from a parent. Three safeguards cover this. Retries handle passing failures, alerts handle real ones, and a weekly summary catches failures that never raise an error.

Choosing between a retry and an error path

Most automation tools give you two ways to respond when a step fails. A retry runs the failed step again, either automatically after a short wait or by hand from the run history. Some tools retry certain errors on their own. Some let you switch on automatic retries per step or per flow. Some let you replay a failed run after you fix the cause. Retries suit failures that go away by themselves, such as timeouts, rate limits and short outages.

An error path is a separate branch that runs only when a step fails. Some tools call it an error handler or a fallback route. With an error path the whole run keeps going. The flow goes down the error path and does something useful there: it sends an alert, writes the failed record to a "needs attention" sheet, or tries an alternative action. Mei Ling's error path on the "add row" step writes the enquiry to a backup sheet and alerts Mei Ling. If the main sheet can't be reached, the parent's details are still saved.

When a step fails, first decide whether the failure is passing or real. Retry passing failures and send real ones down the error path. To find these settings, search your tool's help pages for error handling, retries, replay, error routes or error workflows.

Which steps are safe to retry

Some steps change something every time they run. Sometimes the first attempt works but the tool doesn't get a clear response. A retry then does the same action a second time.

A step is safe to repeat when running it twice leaves the same result as running it once. A lookup is safe, because doing it twice changes nothing. Updating a row to set a status is usually safe, because a status set to "sent" twice still reads "sent". Adding a row is not safe, because a retry can create a duplicate. Sending an email is not safe, because the parent gets two. A payment is very much not safe.

For a step that isn't safe to repeat, you have two choices. You can switch automatic retries off and send an alert instead. Or you can put a lookup in front of the step, the check from Lesson 4.3, Stop duplicates and missed rows, so a second attempt finds the first one and stops. Never set automatic retries on a payment or a deletion. When those fail, a person deals with them.

Building an alert someone will act on

An alert only works if a person sees it in time. Your tool's own error emails are a start, but they have problems. They often go to whoever created the account, get lost among dozens of other notifications, or say little more than "your flow had an error".

Build your own alert as a step in the error path. Send it to a channel you read every day: email if you live in your inbox, or a team chat app such as Slack or Telegram if that is where your team talks. Mei Ling's alerts go to a small Telegram group with two members, Mei Ling and the centre manager.

A useful alert includes:

the flow name the step that failed the error message the tool reported the record ID the time

You pass the record ID from step to step as in Lesson 2.2, Data mapping: passing fields from one step to the next. With the ID in the alert, the reader can find the exact enquiry in seconds. An alert that only says "something failed" leaves the reader hunting through the run history.

Only alert on things a person needs to act on. If every successful run also sends a message, people stop reading them and miss the alert that matters.

A weekly summary for failures that raise no error

Retries and alerts only handle failures the tool can see. Quiet failures raise no error at all. A trigger stops firing, a filter silently rejects good records, or a mapping writes blanks and reports success.

A regular summary catches these. Once a week, have a scheduled flow or a calendar reminder report three numbers for each flow: how many runs happened, how many failed, and the count you expect from the source, such as the number of form responses received. This turns the form-versus-sheet comparison from Lesson 4.3 into a habit.

Compare the actual runs with the expected count. A big drop in runs means there is a problem, even if no error appeared. Mei Ling's enquiry flow normally runs about fifteen times a week, so a week with two runs means something is wrong. With a weekly summary, Mei Ling would have caught the broken connection within days, before any parent called.

In the activity below you will add an error alert to your enquiry flow, sending you the step name, the error and the record ID. Once it is in place, trigger a failure on purpose to make sure the alert arrives where you expect it.

Add an error alert to your enquiry flow that sends you the step name, the error and the record ID.

Course

Junxiong-WFG Organisation is an authorised representative of AIA Financial Advisers Private Limited (Reg. No. 201715016G).