Parallel Array Name Disambiguator with Provenance Report
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.Run the manual trigger; the first Code node emits a fictional payload of parallel arrays under two different parents
- 2.The second Code node infers each array name from the parent field path and safely skips non-array fields
- 3.A Set node pins a manual name (purchased_items) for path orders.items overriding inference
- 4.The resolver Code node detects inferred-name collisions and appends a stable numbered suffix (items_2) without stopping the flow
- 5.An IF node splits manual from automatic records; Merge recombines both branches
- 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
- Import the JSON into n8n and open the workflow
- Execute the manual trigger and verify the provenance output contains purchased_items (manual), items_2 (disambiguated) and empty labels
- Edge case: set payload to {} or null in the loader and confirm the flow still completes with a safe empty report
- 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
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
تحميل حمولة تجريبية
Code
استدلال أسماء المصفوفات
Code
تثبيت استثناء يدوي
Set
حل التضارب وفصل الغموض
Code
هل التسمية يدوية؟
If
مسار التسمية اليدوية
No Op
مسار التسمية التلقائية
No Op
دمج المسارين
Merge
بناء بيان النسب
Code
توثيق المرحلة الأولى
Sticky Note
توثيق المرحلة الثانية
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