Skip to content
Data & Databases

Empty Item Leak Guard: Isolate Always Output Data Placeholders Before Merge Append

15 nodes 89 7 Manual trigger
Download

Loading workflow…

Workflow Description

A fully local template simulating two branches feeding a Merge append: one clean branch and one with Always Output Data enabled that leaks a fully empty item and an all-blank item. Set nodes stamp the origin while keeping all fields, a Code node classifies each item as valid, empty_object or empty_values with a textual reason, and an IF routes valid items to the append while empty ones go to NoOp quarantine. A four-input merge collects clean items, quarantined items and the branch manifest, then a final Code node emits one report distinguishing a naturally empty branch from a leaking one.

How it works

  1. 1.Manual Trigger fans out to three Code nodes: branch A generator, branch B generator, branch manifest
  2. 2.Set nodes add origin and branch_role with includeOtherFields so identifiers survive
  3. 3.Classification Code counts populated fields and writes classification, reason and is_valid
  4. 4.IF sends is_valid=true to the two-input Merge append and the rest to NoOp quarantine
  5. 5.A four-input merge collects clean, quarantined and manifest streams
  6. 6.Final Code node (runOnceForAllItems) returns a single isolation report with per-branch status

Use cases

  • Cleaning merged report lists from blank rows
  • Diagnosing the impact of Always Output Data on merge inputs
  • Telling a naturally empty branch apart from a polluted one
  • Auditing multi-branch item quality before appending

Requirements

  • n8n 2.47.x
  • No credentials and no external calls
  • Swap the two generator Code nodes for your real sources with the same schema

Setup and testing in n8n

  1. Import the JSON and press Execute Workflow
  2. Confirm Merge Clean receives exactly 4 items
  3. Confirm the branch B NoOp receives the two empty items
  4. Inspect the report: leak_detected=true and branch_c status natural_empty_branch
  5. Edge case: make generator B return [] and see the unexpected-empty status

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 15
Apps 6
Views 89
Downloads 7

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

/

Manual Trigger

Manual Trigger

#1

Generate Branch A Items

Code

#2

Generate Branch B Items

Code

#3

Declare Expected Branches

Code

#4

Tag Origin Branch A

Set

#5

Tag Origin Branch B

Set

#6

Classify Branch A Items

Code

#7

Classify Branch B Items

Code

#8

Branch A Valid?

If

#9

Branch B Valid?

If

#10

Quarantine Branch A Empties

No Op

#11

Quarantine Branch B Empties

No Op

#12

Merge Clean Items (Append)

Merge

#13

Collect All Streams

Merge

#14

Build Isolation Report

Code

#15

Sticky Stages

Sticky Note

#16

Sticky Classification

Sticky Note

#17

Sticky Natural vs Leaked

Sticky Note

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