At a mid-size e-commerce company, a marketing team took three months to build an elaborate automation system for syncing customer data between their CRM, email platform and analytics tool. The system worked perfectly in testing.

In just two weeks after going live, the system had copied 40,000 customer records, sent conflicting emails to the same customers and broken the analytics pipeline. It took the team six weeks to clean up the mess. That was longer than what it would have taken to do the whole year's original sync by hand.

The automation did exactly what it was told to do. The problem was that what it was told to do was wrong.

Automation failures follow recognizable patterns. They are not primarily technical failures - most automation tools are reliable enough that technical failures are comparatively rare.

They are design, planning, and maintenance failures: automating the wrong thing, automating it incorrectly, deploying without adequate testing, or failing to maintain automation as the underlying processes change.

Understanding these failure patterns is the most direct route to building automation that works rather than automation that looks like it works until it catastrophically does not.

This article examines the most common automation mistakes - with specific examples of how each failure mode manifests and what prevents it.

Several of these mistakes go against intuition. Complex processes automated aggressively most often produce worse results than when simpler ones are selectively automated. Comprehensive test environments most often fail to spot what fails in production and automation logic that is too detailed tends to create more problems than it solves.


Mistake: Automating a Broken Process

The most fundamental automation mistake is automating a process that should be redesigned rather than automated. Automation amplifies the speed and scale of whatever it does: it amplifies efficiency, but it also amplifies errors, inefficiencies, and design flaws in the underlying process.

Why this happens. Often managed by the same teams or adjacent ones, process improvement and automation go together and there is a natural tendency to turn to automation as the answer when a process hurts. Automating a slow process looks like the obvious way out.

But if the process is slow because it has unnecessary steps, or because the steps are in the wrong order, or because it is solving the wrong problem, automation makes the process faster without making it better.

The diagnostic question. Ask before automating any process what it would look like if this process were perfect. The answer most often shows that the right intervention is process redesign instead of automation.

A process that requires four approvals should first be examined to determine whether four approvals are necessary. If two of them are unnecessary, automating the four-approval process creates efficient execution of unnecessary work.

Example. A financial services firm automated its accounts payable process and took in all current approval routing as well. The automation worked but the procurement team said payments were still moving too slowly.

The investigation showed that what was holding things up was a three-day approval cycle built for handling paper documents, one that needed physical signatures that had been replaced by digital signatures several years ago.

Digital signature infrastructure was in place. The three-day approval cycle was a legacy artifact.

First came process redesign and then automation of the redesigned process. That is what it took to fix things and save the artifact.

Prevention. Before automation, do a process review. Chart the present state through every step, every handoff and every wait. Pinpoint steps that could be eliminated, merged or simplified and optimize the process before any automation takes place.


"Don't automate, obliterate. Before you automate a process, first eliminate every step that does not add value.[7] Automation applied to an inefficient process will magnify the inefficiency."

Michael Hammer

Mistake: Insufficient Error Handling

Without human observation, automation runs on its own. Unexpected things like an API error, a record in an unexpected format, a network timeout or an unavailable downstream system call for graceful handling by the automation or else it fails silently, gives incorrect outputs or causes downstream problems that are hard to diagnose.

The error handling gap. Under the happy path assumption most automation is built. The designer takes in hand that everything will go as expected and designs for that case only. Edge cases, errors and unexpected inputs get treated as unlikely exceptions that can be dealt with later.

Edge cases do not remain exceptions at scale and over time in practice. Predictably as part of what automation operates under, they become a routine part of how it runs.

Categories of errors to plan for:

External service failures. When APIs return 500 errors, services go offline and rate limits get exceeded, third-party systems need maintenance windows and automation depending on external services needs to manage unavailability. The solution is to retry with backoff, fail gracefully and notify humans or put work in a queue until the service recovers.

Data quality issues. Missing fields, unexpected formats or values outside what is expected arrive in the records. An automation that takes clean input data as assumed will fail on real data. Validation of input data and handling of invalid data need to be designed explicitly.

Partial failures: Multi-step automations may complete some steps and fail on others. If step five of a ten-step automation fails, the automation must know what to do: roll back the first four steps, flag the item for manual processing, or retry from step five.

Data left in an inconsistent state by partial completion is most often worse than a full failure.

Timing and sequencing issues. Events coming in out of order, operations finishing in an unexpected sequence and race conditions in which two automation instances work on the same record at once.

Example: A software company deployed an automation that synced new sales orders from their website to their ERP system. The automation had basic error handling for common cases but did not account for duplicate order submissions (when customers double-clicked the submit button).

If two order records for the same purchase came in at once, both got created in the ERP and double fulfillment was triggered. Idempotency checking had to be added to verify that an order had not already been processed before creating a new one. This is a standard design pattern that should have been built in from the beginning.

Prevention. Build explicitly for failure. At each step in automation, ask what happens if this step fails. Transient failures get handled by retry logic that uses exponential backoff and input data gets validated explicitly.

Design for idempotency (making the same automation safe to run multiple times). Create human-readable error notifications with enough context to diagnose the problem.


Mistake: Testing in an Environment That Doesn't Reflect Production

Automation testing is often conducted in environments that are systematically different from production, producing false confidence in systems that will fail under real conditions.

Common testing environment gaps:

Data quality: Test environments are populated with clean, well-formed test data created specifically for testing. Production environments contain real data with all its inconsistencies, legacy formatting, missing fields, and edge cases. Automation tested only on clean test data will encounter production data failures immediately.

Volume. Performance issues, timeout problems or capacity limits that only show up at production scale get missed by testing with small data volumes. When processing 100 records in testing, an automation that gets through that may hit API rate limits when it runs on 10,000 in production.

Timing and concurrency. When multiple automation instances run at once or when events come fast in sequence, issues that single-user testing in sequential execution does not find may appear.

Third-party system behavior. Instead of linking to actual services, test environments most often mock or stub third-party APIs. Rate limits, authentication token expiration, unexpected response changes and service-specific edge cases do not get captured by mocks.

Example. A customer success team put in place an automation that sends personalized onboarding emails based on customer attributes kept in their CRM. Testing used sample data and the automation worked perfectly through that process.

In production, the automation encountered a segment of customers who had been migrated from a legacy system and whose data included a proprietary date format that the automation had not been tested against.

Automation crashed and date parsing failed. No onboarding email went out to several hundred customers. Two years ago data migration was complete and the legacy format did not show up in the test data.

Prevention. Test using representative production data samples that have been anonymized for privacy instead of synthetic test data. Get testing done at production volumes before full deployment. Also test how the automation behaves when third-party services are unavailable, slow or give unexpected data.

Stage rollouts for monitoring how automation behaves against real data before a full deployment.[3]


Mistake: Building Automation That Is Too Clever

Complex automation logic is difficult to understand, difficult to maintain, and difficult to debug when it fails.[10]

There is a strong temptation in automation design to handle every possible case within the automation logic itself - creating elaborate conditional trees that attempt to handle any situation automatically. This approach consistently produces automation that is brittle and unmaintainable.

The simplicity principle: The best automation does a small number of things reliably and routes exceptions to humans for judgment. Automation that tries to handle every case with logic ends up implementing poor approximations of the human judgment it is trying to replace.

Example. A legal services company set up a contract classification automation that put incoming contracts into 15 categories according to keyword patterns as well as structural features. Behind the automation was complex logic. Hundreds of conditions, dozens of exception rules and special treatment of different contract formats made up what the automation consisted of.

It worked well for standard contracts but classified unusual contracts incorrectly at a high rate. The human reviewers who were supposed to "just review the classifications" spent most of their time identifying and correcting classification errors.

The simpler method that put contracts into three broad categories (standard, non-standard, unclear) and sent any "unclear" contract directly to human review did better work using much simpler logic.

The routing heuristic: Design automation to do what is clearly automatable and route everything else to humans. "Unclear" should always be a valid output that triggers human review rather than forcing the automation to make a guess.

Prevention. Do not automate edge cases inside the automation logic. Make the simplest automation that deals reliably with the common case and put in place explicit exception handling that sends atypical cases to human judgment.

Compare the cost of handling exceptions manually against the cost of automated exception handling that comes with poor accuracy.


Mistake: No Monitoring or Alerting

Silent failure that goes undetected until enough damage builds up for someone to notice anything amiss in the outputs is a failure mode that automation running without monitoring brings about. At that point, the automation may have been giving out wrong results for days, weeks or even months.

Why monitoring is skipped: Monitoring is invisible value. When automation is working correctly, monitoring provides no output. The temptation is to treat monitoring as optional - an enhancement to be added later. Later frequently never arrives.

What monitoring should capture:

Processing volumes. This shows how many records the automation processes each time period. Volume that drops suddenly points to a failure and a sudden rise may signal a data quality issue or a change in what comes from upstream.

Error rates. How many records become errors or exceptions? Error rates going up point first and foremost to problems with the quality of upstream data or with how data integrates.

Processing latency. How long is each step taking? As latency rises, that shows performance getting worse and eventually that can lead to timeouts or failures.

Output quality samples. Periodic sampling and review of outputs finds quality degradation that volume and latency metrics miss in automations that make data or documents.

Example. An insurance company put an automation in place to pull information out of claim forms that were submitted. The automation worked fine for three months and then a minor version release by the forms vendor changed their PDF format.

Technically compliant with the original specification, the new format used internal encoding that was slightly different. This made the extraction logic read some field values incorrectly and automation kept processing forms at normal volume with no errors though the data was wrong.

Six weeks after the fact, an auditor found the problem by noticing differences between claims that had been submitted and what the system records showed. At that point, thousands of claims had gone through processing with wrong data that needed to be reviewed and corrected manually.

Prevention. Start by building monitoring into the automation design and do not treat it as an afterthought. Success metrics should be set up for each automation and these must be tracked continuously. Volume outside what is expected, an error rate above the threshold and latency beyond defined limits all call for alerts to be set up.[4]

Schedule periodic manual review of sample outputs for automations that process high-value data.


Mistake: Automation Without Ownership

Every piece of automation must have an owner: someone who understands what it does, what it depends on, and what to do when it breaks. Automation without ownership degrades silently as the business context around it changes.

How ownership failures happen. Whoever is available ends up owning ownership most often. A case in point is an operations analyst who made Zapier work, a developer who wrote a quick script and a consultant who put together a workflow during a project engagement.[5]

Once someone leaves or takes a different job, the automation becomes an orphan. It runs with nobody who knows what it does. No one knows how to fix it when it breaks. Nobody knows to change it when the process it supports changes.

The documentation requirement: For every automation, document:

  • What problem it solves and why it was built
  • What systems it connects and what it does to data
  • What depends on it (who would be affected if it stopped working)
  • What error notifications exist and where to find them
  • How to troubleshoot common failures
  • How to disable it if necessary

Anyone who needs to keep the automation running should have access to this documentation and it should not be kept in the personal files of the person who built it originally.

Example. A startup's growth team set up a complex lead scoring automation in Zapier through which leads went to different sales team members depending on company size, industry and behavioral signals. A growth manager who quit the company eight months later had built the automation.

Three months after she left, the underlying CRM had changed its field naming conventions and an API connection had been updated. The company had changed how it routed leads yet the automation was still running on outdated rules and broken links and leads were being misrouted silently.

No one monitored the automation's outputs and that is why the problem went undetected for four months.

Prevention: Assign an owner to every automation at the time it is built. Include automation documentation in handoff processes when team members leave or change roles. Include automation review in offboarding checklists.

Keep an automation inventory going as a simple document that lists all active automations along with who owns them and what basic function they serve and check it every quarter.


Mistake: Automating Too Early

Automation is often built for processes that have not yet stabilized. If the underlying process is still being designed, still changing frequently, or still not well understood, automation locks in the current state before it is ready to be locked in.

The stabilization test. When a process has held up without major changes for at least 90 days, when the people who run it know it well and can give a precise description of it. When there is enough volume to justify spending on automation, the process is ready to be automated.

The cost of premature automation: Automating an unstable process means rebuilding the automation each time the process changes. Each rebuild consumes the time savings that the automation was supposed to create.

It also creates a disincentive to improve the process - teams become reluctant to change processes because they know the automation will need to be updated.

Example: A software startup automated their customer onboarding process at three months of operation. Over the next year, they changed their onboarding flow six times as they learned more about what customers actually needed.

Each change required updating the automation, which took two to four days each time - a total of 12-24 days of engineering time rebuilding automation for a process that had not yet stabilized.

They would have built the automation just once instead of seven times had they waited until the process was stable.

Prevention. Set up a process maturity threshold before automating. Manual running of the process until it is well understood and stable should be done. Thorough documentation of the process comes before automation. It is better to accept some manual overhead during process development than to rebuild automation multiple times.


MistakeRoot CauseDetection MethodPrevention
Automating a broken processSkipping process reviewHigh error rate despite automationProcess audit before building
Insufficient error handlingBuilding only for happy pathSilent failures accumulateExplicit exception design
Poor testing environmentSynthetic vs. real dataProduction failures not seen in testsUse anonymized production data
Overly clever logicEdge case over-engineeringHigh maintenance costRoute exceptions to humans
No monitoringTreating monitoring as optionalProblems detected weeks lateBuild monitoring from day one
No ownershipBuilder leaves, no docsNo one knows how to fix itAssign owner at build time
Automating too earlyProcess not yet stableAutomation rebuilt repeatedlyWait for 90-day stability

The Automation Debt Problem

Many organizations accumulate "automation debt" - a portfolio of automation that is poorly documented, has no clear ownership, uses outdated API connections, or implements business logic that no longer matches current business practices.

Through individually rational choices such as building quickly, skipping documentation and not giving clear ownership that together build up a liability, automation debt gathers gradually in much the same way technical debt does in software development.

Addressing automation debt requires:

An automation audit: A systematic review of all automation in the organization, documenting what each automation does, who owns it, when it was last reviewed, and whether it is still functioning correctly and serving its intended purpose.

A retirement process. Some automation does not need to be kept forever. Discontinued processes, better solutions that have come along or automation that is too complex to maintain all call for retirement. By retiring automation, maintenance burden is reduced and a source of potential errors gets eliminated.

Ongoing governance. When owners are assigned, documentation becomes a condition of deployment and regular reviews get scheduled, future debt accumulation gets stopped.[1]

Automation brings real value when it is designed and maintained well and the aim is not to avoid automation. What to avoid is automation that creates more problems than it solves through poor design, inadequate testing, insufficient monitoring or neglected maintenance.

Most automation failures are preventable with the practices described here; the failures that occur are, in hindsight, almost always predictable.


What Research Shows About Automation Failure Patterns

The research on why automation projects fail has grown more rigorous as the number of implementations has grown large enough to support statistical analysis rather than just case studies.

McKinsey & Company's 2018 survey of companies that had tried large-scale automation or digital transformation programs showed that 70 percent said they had not met their stated objectives.

Multiple McKinsey surveys over several years have turned up this finding time after time and it has been mainly attributed to implementation and change management failures rather than to technology failures.

Three characteristics were shared by the organizations that succeeded and the research team, including Michael Chui and Jacques Bughin, discovered them. The companies redesigned their processes first and put in place monitoring and governance structures before scaling. Change management was invested in alongside technology deployment.

Gartner has documented the failure patterns of RPA (Robotic Process Automation) specifically.

Of RPA projects, 50 percent fail to deliver the ROI they were supposed to bring. The most frequent causes are automating processes that were already broken, cited by 41 percent of failed implementations, insufficient testing cited by 38 percent, lack of monitoring and governance cited by 36 percent and inadequate exception handling cited by 31 percent.

The overlap with the mistake patterns described in this article is direct and substantial.

Forrester Research analyst Craig Le Clair, who has researched intelligent automation for over a decade, has documented what he calls the "automation paradox": organizations that automate the most processes without governance structures end up with more operational complexity, not less.[8]

Every automation brings in dependencies, maintenance needs and ways to deal with edge cases that together can eat up more of an organization's capacity than the original manual processes had.

Deliberate governance is Le Clair's prescription. That means treating automation as infrastructure that needs design standards, ownership assignment and lifecycle management.

IEEE Software has published peer-reviewed research on software automation failure modes that, while primarily focused on software testing and deployment automation, generalizes to business process automation.

Commonly, industry studies of automation failures attribute a large share to something called environment mismatch. This means the automation functioned in the lab and test environments where it was built and tested yet failed in production because data formats, system settings or how systems integrated had changed.[6]

This maps directly to the testing environment gap described in this article.

Thomas Davenport of Harvard Business School and Babson College has researched automation implementation for over two decades.

His work identifies what he calls "automation theater" - implementations that appear to automate processes but leave the hard, judgment-requiring parts to humans without adequately redesigning the human role.

In Davenport's research, implementations that rebuilt the human role alongside the automation by specifying what humans would now focus on and giving them new tools and responsibilities delivered 3 times the ROI of those that saw automation purely as a way to cut costs.

Real-World Case Studies in Automation Failures and Recoveries

Documenting failures in enough detail to show which design decisions led to them makes the most instructive failure cases.

Knight Capital Group's 2012 trading automation failure shows at the extreme end of what this article describes as compounding failure modes. The failure brought in an old, untested code path through a software deployment into their automated trading system.

The code executed correctly in isolation; it failed catastrophically in the production environment because of interactions with other system components that had changed since the code was last tested.

About 4 million trades were executed over roughly 45 minutes before the system was stopped and that produced a $440 million loss.

The failure combined inadequate testing (testing the deployment in isolation rather than in a system context), no monitoring capable of detecting the anomaly, and no kill switch capable of stopping the automation quickly. Knight Capital was rescued by emergency financing and later acquired by Getco in 2013.

Hertz's agreement with Accenture on a website automation project that went on to generate major litigation once the project failed at a cost over $32 million shows the process-first failure pattern at a different scale.

Without first standardizing the business processes across Hertz's different business units that had developed different workflows for similar activities, the project tried to put together an automated booking and customer management system.

The automation could not handle the process variation it encountered in production. The litigation documents reveal that the automation was tested against a single, standardized workflow but deployed against multiple non-standardized workflows.

Citibank's 2020 $900 million erroneous payment shows a configuration failure mode. This is the one in which human operator error in a flawed software interface caused Citibank to send full principal repayment to Revlon's lenders by mistake instead of the intended interest payment.

Three separate operators had to confirm the payment type through the payment system's interface. The automation set up the test case correctly but the production interface had a known quirk in which the default selected field was not the one operators wanted to change.

The automation did exactly what it was set up to do and the configuration was wrong because testing did not show the behavior of the interface.

A major European bank documented (in an anonymized case published by the Institute for Robotic Process Automation and AI) an RPA implementation in accounts payable that ran correctly for eight months before a vendor changed their invoice PDF format in a minor software update.

Designed for the old format, the RPA bot's screen-reading logic worked fine for that old layout but the new format moved the invoice total to a slightly different spot on the page. The bot started reading the wrong field as what it thought was the invoice total.

Incorrect payment amounts came out of the error for about 2,300 invoices over six weeks before auditors spotted the pattern.

All affected invoices needed manual review. The accounting had to be reconciled with vendors and payments reprocessed and that took more total effort than the automation had saved over eight months of operation.

Developing the fix took three days of developer time. Detecting it and recovering from it took the finance team six weeks.

Uber's early driver onboarding automation serves as a published case study of what happens when automation meets a stabilizing process. Automation came before the onboarding process was stable because the company was growing fast and the process was changing often.

As the process evolved, the automation had to be rebuilt multiple times and that ate into engineering time that could have gone on more stable automation targets.

Before automation investment could happen, Uber's operations team put in place a stability threshold that required a process to be stable for 90 days.

Evidence-Based Approaches to Avoiding Automation Mistakes

Instead of their symptoms, the research on preventing automation failure points to practices that deal with the root causes of failures.

Apply the "process review before automation" discipline without exception. Research from multiple sources including McKinsey on digital transformation, Forrester on RPA and Davenport on automation ROI finds time after time that process redesign before automation is the single most leveraged intervention in any automation program.

Michael Hammer's methodology for process reengineering provides the most detailed framework: map the current state completely, identify the purpose of each step (does it create value or compensate for a defect elsewhere in the process?), eliminate steps that compensate for defects rather than creating value, and only then automate the streamlined process.

Organizations that followed this sequence consistently outperformed those that did not.

Build for failure from the first design session. Extensive documentation in the software reliability literature shows that optimistic automation design fails by building for the happy path and planning to add error handling later.

Michael Nygard'sRelease It! was published in 2007 and revised in 2018. It gives the engineering framework most directly applicable to automation reliability. The approach is to design for stability first. Before thinking about what happens when each dependency succeeds comes what happens when it fails.

In workflow automation, this means that exception handling, error notifications and recovery procedures have to be set up as design requirements rather than as enhancements.[9]

Use production data in testing, not synthetic data. Testing takes place in an environment where the gap is well documented as a main failure cause and the way to prevent it is simple. Test with anonymized production data instead of synthetic test data.

When organizations put this practice in place by pulling anonymized samples of real production data for automation testing, they reported much lower rates of production failures than organizations that tested only with synthetic data.

Real production data holds the edge cases, legacy formats and data quality variations that synthetic data is built to leave out.

Treat automation as infrastructure with mandatory governance.[2] Formal automation governance (ownership assignment, documentation rules and regular review cycles) comes through in the Forrester, Gartner and academic research on automation portfolio management. Organizations that have it report much better long-term automation results than those that treat each automation as an independent project.

Craig Le Clair's research shows that the overhead of governance gets recovered within 12 to 18 months via lower failure rates as well as reduced maintenance costs.

Sources & Further Reading

  1. Fowler, Martin. Refactoring: Improving the Design of Existing Code. Addison-Wesley, 2018.
  2. Kim, Gene et al. The DevOps Handbook: How to Create World-Class Agility, Reliability, and Security in Technology Organizations. IT Revolution Press, 2016.
  3. Allspaw, John and Hammond, Paul. "10+ Deploys Per Day: Dev and Ops Cooperation at Flickr." Velocity Conference, 2009.
  4. Google. "Site Reliability Engineering: How Google Runs Production Systems." O'Reilly Media, 2016.
  5. Zapier. "Common Automation Mistakes and How to Avoid Them." Zapier Learn.
  6. Humble, Jez and Farley, David. Continuous Delivery: Reliable Software Releases through Build, Test, and Deployment Automation. Addison-Wesley, 2010.
  7. Womack, James and Jones, Daniel. Lean Thinking: Banish Waste and Create Wealth in Your Corporation. Free Press, 2003.
  8. Meadows, Donella. Thinking in Systems: A Primer. Chelsea Green Publishing, 2008.
  9. Atlassian. "Incident Management Guide." Atlassian.
  10. Martin, Robert. Clean Code: A Handbook of Agile Software Craftsmanship. Prentice Hall, 2008.