Post-Append Field & Type Consensus Ledger
Loading workflow…
Workflow Description
A fully local workflow that audits how homogeneous an Append output really is, field by field. A Set node declares the schema contract (required paths, accepted type, null policy), two Code nodes emit records with independent shapes, and Merge appends them. A Code node builds a per-field ledger that keeps absence, explicit null and type mismatch as separate states, counts coverage and actual types, lists witness item numbers, and reports undeclared extra fields with their branches. IF then routes the report to a homogeneous or heterogeneous path without normalising the original items.
How it works
- 1.Manual Trigger starts the run with one empty item.
- 2.Set emits the local schema contract item with field paths, types and null policy.
- 3.Two Code nodes emit fictional branch records including absence, null, wrong type and extra keys.
- 4.Merge in append mode stacks contract + branch A + branch B on three inputs.
- 5.Code separates the contract item from data records and returns one consensus report.
- 6.IF checks contract_satisfied and routes to the success NoOp or the heterogeneous NoOp.
Use cases
- Audit Append homogeneity before aggregation or sorting
- Pinpoint the single field blocking a unified downstream contract
- Review merge quality between two differently shaped sources
- Document null and type violations in QA runs
Requirements
- n8n 2.48.8 or newer
- No credentials and no external calls
- Edit the schema contract only inside the Set node
- Swap the two Code nodes for real sources using the same field names
Setup and testing in n8n
- Import the JSON and press Execute Workflow.
- Open Build Consensus Ledger and confirm one report item with 5 data records.
- Verify customer_email shows absence in item 3 and null in item 2 as distinct states.
- Remove the faulty cases from the Code nodes and rerun to reach the success path.
- Return empty arrays from both Code nodes to verify total_items=0 and the heterogeneous path.
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 (9)
Manual Trigger
Manual Trigger
Declare Schema Contract
Set
Branch A Records
Code
Branch B Records
Code
Append Branches
Merge
Build Consensus Ledger
Code
Contract Satisfied?
If
Homogeneous Batch Report
No Op
Heterogeneous Batch Report
No Op
Note Contract
Sticky Note
Note Branches
Sticky Note
Note Ledger
Sticky Note
Note Routing
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