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
- The cleaned and mapped files. See Prepare and map legacy data.
- The company, chart of accounts, and fiscal year exist.
Import order
Import parent records before the records that link to them:
- Groups and other tree parents, for example Customer Groups, Supplier Groups, Territories, and Item Groups
- Masters that do not depend on a company, for example units of measure
- Masters that belong to a company, for example cost centers and warehouses
- Customers and suppliers
- Items
- Addresses and contacts
- Banks, modes of payment, taxes, and payment terms
Download the template
- Open the Data Import list and select Add Data Import.
- Select the Document Type and Insert New Records.
- 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
- Attach the approved file and start the import.
- Download the log of failed rows.
- Correct the working file, not only the failed record in ERPNext.
- Import the failed rows again.
- 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.