Skip to content
Data & Databases

Post-Append Field & Type Consensus Ledger

9 nodes 1 0 Manual trigger
Download

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. 1.Manual Trigger starts the run with one empty item.
  2. 2.Set emits the local schema contract item with field paths, types and null policy.
  3. 3.Two Code nodes emit fictional branch records including absence, null, wrong type and extra keys.
  4. 4.Merge in append mode stacks contract + branch A + branch B on three inputs.
  5. 5.Code separates the contract item from data records and returns one consensus report.
  6. 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

  1. Import the JSON and press Execute Workflow.
  2. Open Build Consensus Ledger and confirm one report item with 5 data records.
  3. Verify customer_email shows absence in item 3 and null in item 2 as distinct states.
  4. Remove the faulty cases from the Code nodes and rerun to reach the success path.
  5. 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

Manual Trigger Set Code Merge If No Op

Details

Trigger Manual trigger
Nodes 9
Apps 6
Views 1
Downloads 0

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

Declare Schema Contract

Set

#2

Branch A Records

Code

#3

Branch B Records

Code

#4

Append Branches

Merge

#5

Build Consensus Ledger

Code

#6

Contract Satisfied?

If

#7

Homogeneous Batch Report

No Op

#8

Heterogeneous Batch Report

No Op

#9

Note Contract

Sticky Note

#10

Note Branches

Sticky Note

#11

Note Ledger

Sticky Note

#12

Note Routing

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