Error handling
Error handling is the design of how a workflow or program detects failures, responds to them and records them so problems are fixed rather than silently lost.
Also called: exception handling, failure handling, error alerts, dead letter queue
Error handling is how a workflow detects that something failed, decides what to do about it and records it so a person can fix the cause. In GTM automation, the real risk isn't a loud crash. It's the quiet failure: a routing workflow that stops assigning leads and looks exactly like a slow week. Good error handling makes every failure visible and recoverable.
How it works
We build error handling in five layers:
- Validate inputs. Check required fields before doing work. A demo request with no email or a junk domain goes to a review path instead of breaking step four.
- Catch errors per step. Wrap API calls so a failure is captured with the step name, the record ID and the error message.
- Retry what's temporary. Timeouts, rate limits and server errors get retry logic with backoff.
- Route what's permanent. Validation and permission errors go to a failure table or dead letter queue, plus a fallback path. If enrichment fails, route the lead to a default owner rather than holding it.
- Alert and review. High-impact failures ping a channel with a link to the record. Everything else rolls into a daily summary.
Each platform has its own tools for this. n8n supports a dedicated error workflow, Make has error handler routes, Zapier has error notifications and paths, and code uses try/catch blocks. The tool matters less than the habit of designing the failure path before the happy path ships.
Example
Say a lead routing workflow breaks on a Friday because a CRM field was renamed, and nobody notices until Tuesday: 4 days at 20 inbound leads a day is 80 unrouted leads (assumption). At a 10% lead-to-opportunity rate and $15,000 average deal size (assumption), that's 80 x 0.10 = 8 opportunities and 8 x $15,000 = $120,000 of pipeline sitting untouched while buyers go cold.
With a fallback owner, those 80 leads still reach a person on day one. With an alert on the first failure, ops fixes the field mapping Friday afternoon. Building both takes about 2 hours.
How to set it up
- Give every workflow an owner and an alert destination.
- Define a default path for each critical decision: default owner, default segment, default sequence.
- Log failures somewhere queryable, such as a table with workflow, step, record, error and timestamp.
- Set volume alerts too. Zero runs in a day is an error even if nothing technically failed. That's where observability picks up.
- For AI steps, send low-confidence outputs to human-in-the-loop review instead of failing or guessing.
- Review the failure log weekly and fix root causes, which often point to data hygiene issues upstream.
Our GTM audit scorecard includes checks for exactly these gaps.
Common mistakes
- Building only the happy path and finding out about failures from a sales rep.
- Alerting on every warning until the channel gets muted.
- Swallowing errors with "continue on fail" and never logging what was skipped.
- Holding a lead when enrichment fails instead of routing it with what you have.
- Fixing the failed record by hand without fixing the cause.
FAQ
How do you handle errors in Zapier, Make or n8n?
Each has its own tools. Zapier offers error notifications, autoreplay on some plans and custom error paths on steps, Make has dedicated error handler routes on modules, and n8n lets you set a separate error workflow that runs whenever another workflow fails.
What is a dead letter queue?
A dead letter queue is a holding area for items that failed after all retries. Instead of disappearing, they wait there with the error details until someone fixes the cause and reprocesses them.
Should every automation error alert someone?
No. Alert on failures that affect revenue or customers and on unusual error volume. Log everything else for review, otherwise alerts become noise and people stop reading them.
Related
Used in these articles
- ArticleMake.com for GTM Teams: Scenarios, Credits and Five Recipes Worth Building
- ArticleMarketing Automation for Startups: What to Automate First and How to Keep It Running
- Articlen8n for GTM Teams: Workflows Worth Building First
- ArticleGTM Observability: Alerts That Catch Broken Workflows Before Sales Does
- ArticleIdempotency in GTM Workflows: Stop Duplicate Records and Double Emails
- ArticleZapier for RevOps: Ten Zaps That Pay for Themselves