Skip to content
All insights

Automation

Why Automation Projects Fail, and How to Design Exception Handling That Works

By the Flowmify team · · 9 min read

Automation: Why Automation Projects Fail, and How to Design Exception Handling That Works

Why automation projects fail

Automation projects rarely fail because the software cannot do the job. They fail because of how the work was planned, owned and supported. KPMG’s list of reasons automation initiatives fail is a useful checklist: treating automation as an experimental side project, looking at isolated steps instead of the end-to-end customer journey, clashes with the IT architecture and strategy, underestimating change and training, and lacking the approval needed to expand and look after automation over time [1]. For the wider picture, see our guide to business process automation.

In smaller businesses the same problems show up in more practical forms:

  • Only the normal path was designed. The demo works with tidy test data; real enquiries arrive with blank fields, odd formats and duplicates.
  • The process was automated as it stood, including steps that only existed because of the old manual way of working.
  • Nobody owns it after launch. The person who built it moves on, and no one watches the runs.
  • Failures are silent. Records stop syncing and it takes weeks for someone to notice that a report looks thin.
  • The team does not trust it, so they keep a manual copy alongside, and the time saving disappears.

The first four are design problems, and the last is the result of them. The rest of this guide is about the design work that keeps an automation running once it meets real data: exception handling.

What exception handling means in workflow automation

Exception handling is everything a workflow does when something falls outside the normal path: how it notices the problem, whether it tries again, where the item goes if it cannot continue, who is told, and how the work is recovered. A workflow without it is not simpler. It just fails in ways that are harder to see.

Before building, walk through each step and list what could arrive or happen that you did not expect. Exceptions usually fall into four groups:

  • Data exceptions: missing, malformed or out-of-range values, such as a phone number in the email field or a date in the wrong format.
  • Timing and duplication: the same event arriving twice, events arriving out of order, or a second run starting before the first has finished.
  • System exceptions: a connected service that is slow, down or limiting requests; expired credentials; a vendor renaming a field or changing an API.
  • Judgement exceptions: a case that should have gone to a person, such as a complaint, a large order or an unusual request.

Each group needs a different response. Retrying a system timeout makes sense; retrying a malformed record will fail the same way every time; and a judgement case should leave the automation altogether.

Classify errors before you retry

Sort every error into temporary or permanent, because only temporary errors deserve an automatic retry. A timeout, a brief outage or a rate limit may well succeed a few minutes later. A rejected record, a missing required field or a permissions error will not, and retrying it only delays the moment a person finds out.

When you do retry, wait between attempts and set a limit. Amazon’s engineering guidance describes retries as “selfish”: a client that retries takes more of the server’s capacity to improve its own chance of success, so aggressive retries can make an outage worse [2]. Instead of retrying immediately, the client should wait some time between tries (backoff), and add some randomness to the wait (jitter) so that many retries do not all land at once [2].

In practice this means a short, increasing gap between attempts, a fixed maximum number of attempts, and a defined destination for the item once that maximum is reached. Most automation platforms offer some of this out of the box. Zapier’s Autoreplay, for example, retries failed steps in a Zap run and is available account-wide on Professional plans and higher [5]; Make’s Retry error handler stores incomplete executions so they can be retried automatically or manually [6]. Check what your platform does by default rather than assuming.

Make every step safe to repeat

If a step can be retried, it can run twice, so design it so that running twice does no harm. Amazon’s guidance puts it plainly: APIs with side effects are not safe to retry unless they provide idempotency [2]. An idempotent step produces the same result whether it runs once or several times.

Payment providers take this seriously because a duplicate is a double charge. Stripe’s API lets you send an idempotency key, a unique value the server uses to recognise later retries of the same request, so that after a connection error you can repeat the request without creating a second object or performing an update twice [3]. Stripe suggests random keys such as V4 UUIDs and advises against using sensitive data such as email addresses as keys [3].

Few business tools offer idempotency keys, so you usually build the same protection into the workflow itself:

  • Use a stable identifier from the source event, such as a form submission ID or order number, and record which ones have already been processed.
  • Search before you create. Look for an existing contact, deal or ticket first, then update it instead of creating another.
  • Prefer “update or create” actions where the platform offers them.
  • Treat irreversible actions with extra care. Sending a message, issuing an invoice or charging a card should check that it has not already happened, and may warrant a person’s approval.

Never lose failed work: use a holding queue

When an item has used up its retries, or failed for a permanent reason, it should go somewhere a person can see it, fix it and send it on. In software engineering this is called a dead-letter queue. Amazon’s documentation describes dead-letter queues as useful for debugging because they isolate messages that were not processed successfully, so you can examine why processing failed and later move them back for another attempt [4].

You do not need a message queue to apply the idea. A holding queue can be a table, a spreadsheet tab or a view in your CRM, as long as each entry keeps the original input, the error message, the step that failed and the time. Platform features can help: n8n lets you set an error workflow that runs when an execution fails, starting with an Error Trigger node that passes on details such as the error message, the last node executed and the workflow name [7].

  1. Step fails
  2. Temporary? Retry with backoff
  3. Limit reached
  4. Holding queue
  5. Owner alerted
  6. Fixed and replayed
An exception path: temporary errors are retried within a limit; everything else is kept, flagged and replayed.

Once failed items are kept rather than lost, a failure becomes a short piece of admin instead of a hunt through three systems to reconstruct what happened.

Alerts that people act on, including alerts for silence

An alert is only useful if someone receives it, understands it and knows what to do. Google’s Site Reliability Engineering book sets the standard: every page should be actionable, and every page response should require intelligence; a page that merits only a robotic response should not be a page at all [8]. It also warns that when pages occur too frequently, people second-guess, skim or even ignore them [8]. If everything alerts, nothing does.

For a business workflow, that translates into a few rules:

  • Route each alert to a named owner, not a shared inbox nobody reads.
  • Say what happened and what to do: which record, which step, the error, and a link to the holding queue.
  • Alert on symptoms people care about, such as “three leads did not reach the CRM”, rather than every internal warning. The SRE book frames monitoring around two questions, what is broken and why [8].
  • Alert on silence. Some failures produce no error at all: a trigger stops firing or a connection is revoked. A health check that notices “no new leads today” or “the nightly sync did not run” catches these.

Also know your platform’s safety switches. Zapier, by default, automatically pauses a Zap that hits an error 95% or more of the time over the past seven days [5]. That protects you from runaway errors, but it means a broken workflow can simply stop, which is one more reason to monitor for missing activity.

Give every workflow an owner and a human path

Ownership is the difference between an automation that runs for years and one that quietly decays. The owner understands the process, receives the alerts, works the holding queue and decides when the workflow needs changing. KPMG lists underestimating change and training among the main reasons automation initiatives fail [1], and ownership is where that shows up day to day.

Define the human path explicitly. Decide which cases leave the automation, who receives them and what context they get. A good handoff includes the original input and a record of what has already happened, so nobody starts again or contacts a customer twice. Write a short runbook next to the workflow listing the common exceptions and the fix for each. If you are moving towards AI agents, these escalation and approval rules matter even more; our AI agent deployment checklist covers them.

Test failure on purpose before launch

Testing only the happy path proves the demo, not the workflow. Before launch, deliberately push failures through it and confirm that each one is caught, kept and reported:

  1. 01Send bad dataBlank required fields, wrong formats, oversized values.
  2. 02Send duplicatesReplay the same event twice and check only one record results.
  3. 03Break a connectionRevoke a credential or point at a failing endpoint.
  4. 04Check the alertConfirm the right person receives it and understands it.
  5. 05Recover the itemFix it from the holding queue and replay it end to end.
A pre-launch failure test, run on a copy of the workflow with test data.

Test the error handling itself too. An error workflow that is configured but never fires is worse than none, because it creates false confidence. n8n, for example, notes that you can use its Stop And Error node to force executions to fail under conditions you choose, and that doing so also triggers the error workflow [7]. That makes it a handy way to rehearse.

Testing is a stage in its own right in how we work, and reliability is built into our workflow automation projects rather than added afterwards.

An exception handling checklist

Before any workflow goes live, you should be able to tick every line:

  • Exceptions are listed for each step, grouped into data, timing, system and judgement.
  • Temporary and permanent errors are handled differently.
  • Retries use increasing waits and a maximum number of attempts.
  • Every step that creates or sends something is safe to repeat.
  • Failed items go to a holding queue with the original input and error.
  • Alerts go to a named owner and say what to do.
  • A health check catches missing activity.
  • Cases needing judgement are escalated with full context.
  • Failure tests have been run and the recovery has been rehearsed.

If you are still choosing what to automate, start with the first workflows worth automating, and include the cost of monitoring and maintenance when you build the business case. Integrations between a CRM and other tools are where many of these exceptions appear, so the same principles run through our guide to connecting CRM, reporting and follow-up. If you would like a second opinion on a workflow that keeps breaking, get in touch.

Sources

  1. Five reasons why automation initiatives fail, KPMG Netherlands
  2. Timeouts, retries, and backoff with jitter, Amazon Builders’ Library
  3. Idempotent requests, Stripe API reference
  4. Using dead-letter queues in Amazon SQS, Amazon Web Services
  5. Decide how your Zap handles errors with advanced settings, Zapier Help Center
  6. Error handlers, Make Help Center
  7. Handle errors gracefully, n8n Docs
  8. Monitoring Distributed Systems, Google, Site Reliability Engineering
Related serviceAI & Workflow Automation

FAQ

Related questions.

All questions

Usually for organisational reasons rather than technical ones: automation treated as a side experiment, a fragmented view of the process, poor fit with IT strategy, too little change management and training, and no ongoing support. In day-to-day terms that becomes no owner, no exception handling and failures nobody notices.

Let’s Build Something Intelligent

Your next business improvement starts with a conversation.

Whether you’re looking to automate repetitive work, introduce AI into your operations, improve business visibility or build custom software, we’re ready to understand your requirements.

Let’s identify the opportunities and turn them into practical solutions.