Import accounting masters ​

Import the masters before any opening document or balance. Use Data Import for masters that have no special importer. For the chart of accounts, use the Chart of Accounts Importer.

Prerequisites ​

Import order ​

Import parent records before the records that link to them:

  1. Groups and other tree parents, for example Customer Groups, Supplier Groups, Territories, and Item Groups
  2. Masters that do not depend on a company, for example units of measure
  3. Masters that belong to a company, for example cost centers and warehouses
  4. Customers and suppliers
  5. Items
  6. Addresses and contacts
  7. Banks, modes of payment, taxes, and payment terms

Download the template ​

  1. Open the Data Import list and select Add Data Import.
  2. Select the Document Type and Insert New Records.
  3. Save, and download the template with the columns that your mapping needs.

Always start from a current template. Mandatory fields change between versions.

Fill the template ​

  • Keep the column headers as they are.
  • Use the exact ERPNext names in link fields.
  • For tree masters, import the parents first and set Is Group correctly.
  • For child tables, follow the row layout of the template.

Test a small batch ​

Import two to five records:

  • a simple record;
  • a record with every optional link;
  • a record with a child table;
  • a party in a foreign currency, if you have one;
  • a disabled record.

Open each record, and use it in a draft document.

Run the full import ​

  1. Attach the approved file and start the import.
  2. Download the log of failed rows.
  3. Correct the working file, not only the failed record in ERPNext.
  4. Import the failed rows again.
  5. Record the imported and failed counts.

Addresses and contacts ​

Import them after the parties. Fill the Links table of each address and contact with the customer, supplier, or other party. Set the billing, shipping, and primary flags, and check the defaults on the party.

Items and their accounting defaults ​

For each Item, check Maintain Stock, the stock unit of measure, the Item Group, the default warehouse, the income and expense accounts, the cost center, the tax template, and the valuation method. A successful import does not prove that the defaults are correct.

Correct an import ​

Use Update Existing Records for approved corrections. Do not create a second record to fix a spelling error. If a duplicate is already used in documents, rename or merge it.

Check the result ​

  • The source count equals the imported plus failed count.
  • There are no unexpected duplicates.
  • The trees are correct.
  • The party and Item defaults are correct.
  • Addresses and contacts are linked.
  • Disabled records stay disabled.
  • Draft sales, purchase, payment, and stock documents fetch the expected values.