Import a chart of accounts
When you create a company, ERPNext gives it a standard chart of accounts. To use your own chart instead, import it with the Chart of Accounts Importer.
WARNING
The import replaces the existing chart of accounts of the company. It works only for a company that has no transactions.
Prerequisites
- A company with no general ledger entries.
- For a child company: import into the parent company, or select Allow Account Creation Against Child Company in the child company.
- Your accounts with their parent accounts, root types, and account types.
Step 1: Download the template
- Open the Chart of Accounts Importer.
- Select the Company.
- Select Download Template.
- Select the File Type: Excel or CSV.
- Select the Template Type:
- Sample Template: filled with example accounts. Edit it to your accounts.
- Blank Template: an empty template.
- Select Download.
Step 2: Fill the template
Each row is one account, with its parent account. Follow these rules:
Each root account has a Root Type: Asset, Liability, Income, Expense, or Equity. All five root types must be present.
The chart must have accounts with these account types:
Account type Root type Bank, Cash, Fixed Asset, Receivable, Stock Asset Payable Liability Cost of Goods Sold, Depreciation, Stock Adjustment Expense Group accounts are needed for Bank, Cash, and Stock.
Each parent account must exist in the file.
Learn more about root types and account types.

Step 3: Check the preview and import
- In Attach custom Chart of Accounts file, attach your file.
- Check the tree in Chart Preview. Select Expand All to see every account.
- Select Import. ERPNext creates the accounts and shows Import Successful.
To check the result, open the Chart of Accounts and select the company.
Troubleshooting
| Message | Fix |
|---|---|
| Transactions against the Company already exist | The company has general ledger entries. Import the chart into a company without transactions. |
| Please add Root Account for ... | Add a root account for each missing root type. |
| Root Type for ... must be one of the Asset, Liability, Income, Expense and Equity | Correct the root type of the account. |
| The parent account ... does not exists in the uploaded template | Add the parent account to the file, or correct its name. |
| ... is a child company | Import into the parent company, or select Allow Account Creation Against Child Company in the child company. |
| No data found. Seems like you uploaded a blank file | Fill the template before you attach it. |