Nested JSON Undefined Path Diagnostics with Quarantine
Loading workflow…
Workflow Description
A fully manual, self-contained workflow that depth-first scans a transformed nested JSON output, detects every undefined value, null, "undefined" string and absent key, and links each bad output path back to its missing original source path via a mapping spec table with array index resolution. An If node routes clean records to a pass-through lane and corrupt ones to a quarantine NoOp, then a Merge and final Code node build one summary report preserving exact input counts with no external dependencies.
How it works
- 1.Run Manual Trigger; the injection Code node emits three fictional records matching the real input schema
- 2.A Code node scans every mapped path depth-first, flagging undefined, null, "undefined" strings and missing keys
- 3.Each bad output path is matched to its source path using the SPECS table with array index substitution
- 4.An If node sends clean records (status=clean) to the true lane and corrupt ones to quarantine
- 5.A Merge appends both branches and a final Code node builds one report with counts and issue details
Use cases
- Diagnosing undefined errors after transforming nested JSON payloads into a target structure
- Data quality gating before passing transformed output downstream
- Quarantining corrupt records with precise per-path source traceability
Requirements
- n8n 2.45.5 with Manual Trigger, Code, If, Merge, NoOp and Sticky Note nodes
- No credentials or network connections
- For real use: replace the injection node with your upstream items and update the SPECS table inside the scanner to match your mapping
Setup and testing in n8n
- Import the JSON into n8n and execute Manual Trigger
- Verify the Final Diagnostic Report: one clean record and two quarantined records
- Add a record missing a mapped key to see the missing_output_key issue type
- Test edge cases like empty arrays or null fields to confirm safe handling
Service Value
Ready-made workflow template for automation delivery and service execution.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (8)
Manual Trigger
Manual Trigger
Inject Fictional Sample Payloads
Code
Undefined Path Scanner (Depth-First)
Code
Route: Clean vs Corrupt
If
Clean Lane (Pass-Through)
No Op
Quarantine Holding (NoOp)
No Op
Merge Branches (Append)
Merge
Final Diagnostic Report
Code
Sticky: Overview & Setup
Sticky Note
Sticky: How to Read the Report
Sticky Note
Fresh workflows, straight to your inbox
Get newly published DROPIDEA workflows, a clear overview of what they do, and a link to explore them.
- New workflows
- Clear overviews
- Setup guides