Skip to content
Data & Databases

Parallel Array Name Disambiguator with Provenance Report

10 nodes 66 5 Manual trigger
Download

Loading workflow…

Workflow Description

A local manual-trigger workflow that flattens a payload of parallel arrays under parent fields, infers each array name from its key within the parent path, and when two paths infer the same name it appends a stable numbered disambiguation suffix instead of halting. A Set node pins a manual override that bypasses inference, an IF node splits manual from automatic naming, and a final Code node builds a provenance statement with per-name paths, statuses, counts, auto-to-manual ratio, and a uniqueness check.

How it works

  1. 1.Run the manual trigger; the first Code node emits a fictional payload of parallel arrays under two different parents
  2. 2.The second Code node infers each array name from the parent field path and safely skips non-array fields
  3. 3.A Set node pins a manual name (purchased_items) for path orders.items overriding inference
  4. 4.The resolver Code node detects inferred-name collisions and appends a stable numbered suffix (items_2) without stopping the flow
  5. 5.An IF node splits manual from automatic records; Merge recombines both branches
  6. 6.The final Code node builds the provenance report: per-name path and status, counts, auto-to-manual ratio, uniqueness check

Use cases

  • Flattening variable nested JSON payloads into uniquely named records
  • Documenting naming provenance before mapping arrays to downstream columns
  • Resolving naming collisions across parallel sources without halting execution

Requirements

  • n8n 2.44.6 with code, set, if, merge, stickyNote and manualTrigger nodes
  • No credentials: fully local fictional data; for production replace the payload node with your source using the same schema

Setup and testing in n8n

  1. Import the JSON into n8n and open the workflow
  2. Execute the manual trigger and verify the provenance output contains purchased_items (manual), items_2 (disambiguated) and empty labels
  3. Edge case: set payload to {} or null in the loader and confirm the flow still completes with a safe empty report
  4. Change the manual name to collide with an inferred name and verify the safety net assigns a unique _alt suffix

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 66
Downloads 5

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

#1

تحميل حمولة تجريبية

Code

#2

استدلال أسماء المصفوفات

Code

#3

تثبيت استثناء يدوي

Set

#4

حل التضارب وفصل الغموض

Code

#5

هل التسمية يدوية؟

If

#6

مسار التسمية اليدوية

No Op

#7

مسار التسمية التلقائية

No Op

#8

دمج المسارين

Merge

#9

بناء بيان النسب

Code

#10

توثيق المرحلة الأولى

Sticky Note

#11

توثيق المرحلة الثانية

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