Skip to content
Data & Databases

Silent Dot-Notation Restructuring Detector with Safe Relocation

9 nodes 40 1 Manual trigger
Download

Loading workflow…

Workflow Description

A manual-trigger workflow loads fictional test data mixing literal dotted keys like user.name with original nesting. A Code node maps every dotted key, identifies its artificial nested path created by n8n dot notation, and relocates the value to a safe flat key (dots replaced by double underscores) with a full relocation log. An If node verifies every value sits at its correct key and original nesting is intact, routing failures to a deviation report, then a Merge node appends both branches into one final audit report.

How it works

  1. 1.Click Execute on the Manual Trigger to load two fictional records: one with dotted keys plus original nesting, one empty edge case
  2. 2.The Code node analyzes keys, builds artificial paths, safe keys, and a relocation log
  3. 3.The If node verifies every value is at its correct location and original nesting is intact
  4. 4.Success branch: Set stamps PASS retaining all fields, then NoOp
  5. 5.Failure branch: a deviation report counts missing and misplaced values
  6. 6.Merge appends branches and a final Code node builds one consolidated audit report

Use cases

  • Auditing Set node output before downstream use when keys contain dots such as file names or IDs
  • Separating original nesting from artificial dot-notation nesting
  • Producing an auditable relocation log before further processing

Requirements

  • n8n version 2.48.7
  • No credentials needed: only Manual Trigger, Code, Set, If, Merge, NoOp and Sticky Note nodes
  • For real data, replace the loader node payload with your Set node output of the same schema

Setup and testing in n8n

  1. Import the JSON into n8n and open the workflow
  2. Execute the Manual Trigger and confirm one final item with all_values_placed=true and 3 relocations
  3. Edge case: edit the loader to simulate a lost value so the deviation branch activates
  4. Confirm the empty record passes with zero relocations

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

Manual Trigger Code If Set No Op Merge

Details

Trigger Manual trigger
Nodes 9
Apps 6
Views 40
Downloads 1

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 (9)

/

Manual Trigger

Manual Trigger

#1

Load Fictional Test Payload

Code

#2

Detect and Relocate Dot-Notation Keys

Code

#3

All Values Verified

If

#4

Finalize Verified Flat Record

Set

#5

Ready For Downstream Use

No Op

#6

Build Deviation Report

Code

#7

Append Success and Deviation Branches

Merge

#8

Build Final Audit Report

Code

#9

Sticky: Stage Overview

Sticky Note

#10

Sticky: Verification and Routing

Sticky Note

#11

Sticky: Final Merge

Sticky Note

#12
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