Access Execution Data from Error Workflows

Retrieves and extracts webhook data from failed executions in n8n error workflows, enabling data-driven error handling and recovery.

n8n
Access Execution Data from Error Workflows

This workflow demonstrates how to access execution data within an n8n error workflow, allowing you to make decisions based on the data that caused the failure. It starts with the Error Trigger node, which activates when another workflow encounters an error. The 'Get execution data' node then uses the n8n API to fetch details of the failed execution, including node data.

Next, the 'Extract webhook data' Code node parses the execution data to identify webhook nodes, extract their input payloads, and return the relevant data (prioritizing the first available webhook). This is crucial for scenarios where error handling needs context from the original request, such as logging specific user inputs or retrying with modified data.

Benefits include enhanced debugging, automated recovery logic, and reduced manual investigation time. Use cases: production monitoring, API error recovery, webhook processing failures in HRMS or IT systems, and custom alerting with failure context. Ideal for scaling n8n automations reliably.

$8.99
Last updated November 14, 2026
30-day money-back guarantee
Instant download
Lifetime updates included

New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.

Secure checkout powered by Stripe

Support

How to import this workflow into n8n

  1. 1Purchase or download the workflow to get the n8n workflow JSON file.
  2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
  3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
  4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

Related HR Management workflows

More from Omar Karlsson

Need this deployed? We'll set it up for you.

Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.