Rename and merge documents ​

You can rename one document from its form, or many documents at once with the Rename Tool. Renaming to the name of an existing document merges the two documents.

Prerequisites ​

  • The Write permission on the document, and a document that allows renaming.
  • For the Rename Tool: the System Manager role.

Rename one document ​

  1. Open the document.
  2. Open the menu (...) and select Rename. The option appears only if the document can be renamed and you have permission.
  3. Enter the new name, and select Rename.

Rename many documents with the Rename Tool ​

For example, you want to change 500 old Item codes to a new code standard.

Step 1: Create the file ​

Create a spreadsheet with the old names in the first column and the new names in the second column. Do not add a header row. Save it as a .csv file.

Column 1 (old name)Column 2 (new name)
Large Blue ShirtSHIRT-BLUE-L
Small Red ShirtSHIRT-RED-S
AA Batteries 4pkBATT-AA-04

Step 2: Upload the file ​

  1. Open the Rename Tool.
  2. In Select DocType, select the document, for example Item.
  3. In File to Rename, attach the CSV file.
  4. Select Rename.

ERPNext renames the documents in background jobs of up to 500 rows each. The Rename Log shows how many jobs are queued, started, finished, or failed.

Merge duplicate documents ​

You have two Customers, "Steve" and the duplicate "Steve1". Merge them so that all documents of "Steve1" point to "Steve".

  • One pair: open "Steve1", select Rename, enter Steve, select Merge with existing, and select Rename.
  • Many pairs: in the Rename Tool file, add a third column with 1 or TRUE on each row to merge.
Column 1Column 2Column 3 (merge)
Steve1Steve1

WARNING

A merge cannot be undone. Take a backup first.