Skip to content
Data & Databases

n8n Node Rename Migrator with Atomic Connection Reference Update

8 nodes 7 1 Manual trigger
Download

Loading workflow…

Workflow Description

A self-contained workflow that accepts an exported n8n workflow plus a rename map. It first validates that every old name exists, that new names are non-empty, and that no final name collides with another node, including nodes outside the map. Only after validation passes does it deep-copy the structure and rewrite nodes[].name, connection source keys and every destination node value, then re-scan the copy to prove no dangling reference remains. Any error blocks the migration entirely and returns the untouched original. An IF routes the result and a final Code node emits one aggregated report.

How it works

  1. 1.Manual Trigger fires the workflow with one empty item.
  2. 2.Load Sample Rename Jobs emits two fictional cases: a valid map and an invalid one with a missing old name plus a collision.
  3. 3.Validate And Migrate Atomically validates structure and map and detects collisions before any mutation.
  4. 4.On success it deep-copies the workflow and renames nodes, connection source keys and destination references.
  5. 5.It re-scans the copy and counts dangling references; any dangling reference flips the case to blocked.
  6. 6.If Migration Applied splits the verified-copy path from the blocked path.
  7. 7.Set nodes add status and outcome while keeping all original fields.
  8. 8.Merge joins both branches on separate inputs.
  9. 9.Build Migration Report returns one item with per-case counters, rename log and errors.

Use cases

  • Bulk-renaming nodes in an exported workflow file without breaking connections.
  • Applying a naming convention to a local copy with an auditable change log.
  • Dry-checking a proposed rename map and catching collisions in advance.
  • Producing a review report of renamed nodes, source keys and destination references.

Requirements

  • n8n 2.49.6 or a version with matching node types and versions.
  • No credentials and no network calls.
  • Input schema: workflow with nodes and connections, plus renameMap mapping each old name to one new name.
  • For real data, replace the sample Code node with a source emitting items of the same schema.

Setup and testing in n8n

  1. Import the JSON into n8n and open the workflow.
  2. Click Execute Workflow and inspect Build Migration Report: one item with two cases.
  3. Confirm the valid case shows nodesRenamed=2, sourceKeysRenamed=2, destinationRefsRenamed=1, danglingReferences=0.
  4. Confirm the invalid case has status blocked with two error messages and no rename applied.
  5. Edge case: set renameMap to {} or remove nodes and verify an error message and the blocked path.

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

Manual Trigger Code If Set Merge

Details

Trigger Manual trigger
Nodes 8
Apps 5
Views 7
Downloads 1

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

/

Manual Trigger

Manual Trigger

#1

Load Sample Rename Jobs

Code

#2

Validate And Migrate Atomically

Code

#3

If Migration Applied

If

#4

Tag Verified Copy

Set

#5

Tag Blocked Original

Set

#6

Merge Both Paths

Merge

#7

Build Migration Report

Code

#8

Note Input Stage

Sticky Note

#9

Note Migration Logic

Sticky Note

#10

Note Routing And Report

Sticky Note

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