Dot-Key Loss Rescue Gate for Set Node Outputs
Loading workflow…
Workflow Description
A self-contained manual-trigger workflow that snapshots the source payload before a default Set processing stage prone to losing literal dot-notation keys, compares snapshot keys against output keys in a Code node to extract victim key/value pairs, routes rescue versus clean payloads through an If node, and merges both branches into one summary report with recovery counters. No external calls or credentials are used.
How it works
- 1.Run the manual trigger; a Code node emits three samples: dotted-key payload, clean payload, empty payload
- 2.A Set node stores the source copy in source_snapshot with includeOtherFields:true
- 3.A default Set stage without includeOtherFields drops payload fields, simulating documented dot-key loss while keeping the snapshot
- 4.A Code node detects absent dotted keys and extracts their original values into rescued_fields
- 5.If routes count greater than zero to reinjection, otherwise to NoOp
- 6.A Merge node appends both branches on separate inputs
- 7.A final Code node builds one summary report with rescued and clean counters
Use cases
- Protecting JSON payloads with literal dotted keys before final reporting
- Auditing silent loss after Set nodes in existing n8n chains
- Documenting recovered keys before sensitive downstream stages
Requirements
- n8n 2.48.5
- No credentials and no network calls
- For production: replace the sample node with a real source of the same key schema
- Permanent fix: disable Add Option > Support Dot Notation in the Set node
Setup and testing in n8n
- Import the workflow into n8n 2.48.5
- Run Manual Trigger and verify the final report shows status rescued with 3 recovered keys and 2 clean items
- Edit the sample node to remove dotted keys and verify zero counters and the NoOp path
- Add an empty item and verify it is treated as clean
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 (10)
Manual Trigger
Manual Trigger
Generate Sample Payload
Code
Save Source Snapshot
Set
Standard Processing (Default Set)
Set
Detect Lost Dot Keys
Code
Victims Found?
If
Reinject Rescued Fields
Set
Clean Pass Through
No Op
Append Both Paths
Merge
Build Rescue Report
Code
Note: Rescue Gate Overview
Sticky Note
Note: Why Keys Vanish
Sticky Note
Note: Routing and 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