Empty Item Leak Guard: Isolate Always Output Data Placeholders Before Merge Append
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.Manual Trigger fans out to three Code nodes: branch A generator, branch B generator, branch manifest
- 2.Set nodes add origin and branch_role with includeOtherFields so identifiers survive
- 3.Classification Code counts populated fields and writes classification, reason and is_valid
- 4.IF sends is_valid=true to the two-input Merge append and the rest to NoOp quarantine
- 5.A four-input merge collects clean, quarantined and manifest streams
- 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
- Import the JSON and press Execute Workflow
- Confirm Merge Clean receives exactly 4 items
- Confirm the branch B NoOp receives the two empty items
- Inspect the report: leak_detected=true and branch_c status natural_empty_branch
- 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
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 (15)
Manual Trigger
Manual Trigger
Generate Branch A Items
Code
Generate Branch B Items
Code
Declare Expected Branches
Code
Tag Origin Branch A
Set
Tag Origin Branch B
Set
Classify Branch A Items
Code
Classify Branch B Items
Code
Branch A Valid?
If
Branch B Valid?
If
Quarantine Branch A Empties
No Op
Quarantine Branch B Empties
No Op
Merge Clean Items (Append)
Merge
Collect All Streams
Merge
Build Isolation Report
Code
Sticky Stages
Sticky Note
Sticky Classification
Sticky Note
Sticky Natural vs Leaked
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