Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
  1. Home
  2. Blog
  3. What Happens When an Automated Step Fails
Business Automation

What Happens When an Automated Step Fails

Partial failure is the hard case in any automated process. Retries, duplicate prevention and the manual route that has to exist somewhere.

Updated 2 min readBy SpiderHunts Technologies

Free estimateNo obligation

Get a free estimate

Tell us what you need. A senior engineer reads every enquiry.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →

Quick answer — TL;DR

Make each step safe to repeat, retry with increasing gaps rather than immediately, and always keep a route for a person to finish something by hand. Half-completed work is where automated processes do real damage.

The short answer

Complete success and complete failure are both easy. The difficult case is a process that did three of its five steps and then stopped, leaving inconsistent state behind.

Design so repeating a step is harmless, and so a person can always finish or unwind the work.

Make steps safe to repeat

  1. Give each piece of work an identifier that travels with it.
  2. Check whether a step has already been done before doing it.
  3. Record completion of each step, not just of the whole process.
  4. Never let a retry send a second message or create a second record.
  5. Test by deliberately running the same work twice.

Point four is where the visible damage happens. Duplicate invoices, duplicate emails and duplicate orders are what customers notice from a retry loop.

Retry sensibly

FailureResponse
Temporary network problemRetry with increasing gaps
Upstream system busyBack off, do not hammer it
Invalid dataDo not retry, route to a person
Credentials rejectedStop and alert, retrying will not help
Unknown errorRetry a few times, then escalate

The third and fourth rows matter. Retrying something that can never succeed wastes capacity and buries the real alert among repeated failures.

Keep a manual route

  • A way to see exactly where a piece of work stopped
  • A way to complete the remaining steps by hand
  • A way to mark work as handled outside the system
  • A way to unwind steps already taken, where that is possible
  • Someone who knows how to do all of the above

The last point is the one that lapses. A manual route nobody has used in a year is not a route, and the incident is a poor time to learn it.

Make stuck work visible

Work that failed and is waiting needs to appear somewhere a person looks daily. A failure queue nobody opens is the same as losing the work.

Count the items in it and alert when the count grows, because the individual failures matter less than the fact that nobody is clearing them.

FAQ

Frequently asked questions

The questions readers ask us after this guide.

Still have a question?

Ask us directly — a senior engineer will get back to you.

Ask about your project

What is the hard case in automation?

Partial failure. A process that completed some steps and stopped leaves inconsistent state behind.

How do we prevent duplicate actions on retry?

Give each piece of work an identifier, record which steps completed, and check before repeating one.

Should every failure be retried?

No. Invalid data and rejected credentials will never succeed, and retrying buries the real alert.

Where should failed work go?

A queue somebody looks at daily, with an alert when it grows. A queue nobody opens is the same as losing the work.

Keep reading

More on Business Automation

Start here

Want a process automated properly?

Tell us what the process is, how often it runs and what breaks today. We will come back with what is worth automating, what should stay manual, and a realistic build. If a smaller change would do, we will say so.

  1. You tell us what you needTwo minutes on the form, or a message on WhatsApp.
  2. A senior engineer reviews itAnd comes back with questions, a realistic range and an honest view on fit.
  3. Free 30-minute scoping callWe talk through scope, options and a realistic estimate — with no obligation.
Free estimateNo obligation

Talk to someone who builds this

Send a short brief and we will come back with an honest view and a realistic range.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →