Skip to content
Data & Databases

Dot-Key Loss Rescue Gate for Set Node Outputs

10 nodes 64 3 Manual trigger
Download

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. 1.Run the manual trigger; a Code node emits three samples: dotted-key payload, clean payload, empty payload
  2. 2.A Set node stores the source copy in source_snapshot with includeOtherFields:true
  3. 3.A default Set stage without includeOtherFields drops payload fields, simulating documented dot-key loss while keeping the snapshot
  4. 4.A Code node detects absent dotted keys and extracts their original values into rescued_fields
  5. 5.If routes count greater than zero to reinjection, otherwise to NoOp
  6. 6.A Merge node appends both branches on separate inputs
  7. 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

  1. Import the workflow into n8n 2.48.5
  2. Run Manual Trigger and verify the final report shows status rescued with 3 recovered keys and 2 clean items
  3. Edit the sample node to remove dotted keys and verify zero counters and the NoOp path
  4. 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

Manual Trigger Code Set If No Op Merge

Details

Trigger Manual trigger
Nodes 10
Apps 6
Views 64
Downloads 3

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (10)

/

Manual Trigger

Manual Trigger

#1

Generate Sample Payload

Code

#2

Save Source Snapshot

Set

#3

Standard Processing (Default Set)

Set

#4

Detect Lost Dot Keys

Code

#5

Victims Found?

If

#6

Reinject Rescued Fields

Set

#7

Clean Pass Through

No Op

#8

Append Both Paths

Merge

#9

Build Rescue Report

Code

#10

Note: Rescue Gate Overview

Sticky Note

#11

Note: Why Keys Vanish

Sticky Note

#12

Note: Routing and Report

Sticky Note

#13
Stay in the loop

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

Be first to discover what is new

Your name, your email, and one confirmation.

Email confirmation · Unsubscribe anytime