I’ve tried many solutions and here is the one that let me pass this barrier finally (thanks to Joseph_Marie_Alba1 :
I made the following
1- Stored the COA that I want to upload in an Excel sheet (say “original” sheet) as per the following format: (Note that the column “ID” is left blank as we will “add” new records.
PS: Make sure you add to the Parent Account the account number "NN - " and the Company Abbreviation "CC - ". Example: The account “Fixed Assets” (number 11) has a parent account “Assets” has a number (1) and the company abbreviation is “CC”; Then the Parent Account for “Fixed Assets” will be equal to: " 11 - Fixed Assets - CC "
ID |
Account Name |
Parent Account |
Account Number |
Is Group |
Root Type |
Account Type |
|
Assets |
|
1 |
1 |
Asset |
Fixed Asset |
|
Fixed Assets |
1 - Assets - CC |
11 |
1 |
Asset |
Fixed Asset |
|
Furniture and Equipment |
11 - Fixed Assets - CC |
1101 |
1 |
Asset |
Fixed Asset |
|
Furniture |
1101 - Furniture and Equipment - CC |
11010101 |
0 |
Asset |
Fixed Asset |
2- Created the five Root Accounts manually using the User Interface.
3- Added new sheets to the Excel workbook, for this example let’s use the following names: “sorted”, “ROOT”,“level1”,“level2”,“level3”,etc… according to how many sub-levels exists under the “root” level.
4- Made a “Copy” and “Paste - Link” from the original sheet (7 columns) to the sheet named “sorted”. The Paste-Link will assure that the “Account Names” in the created sheets will be updated if you change in the “original” sheet.
5- Performed an “Ascending Sort” in the “sorted” sheet based on the field “Account Number”.
6- Made a Copy / Paste of the “Level 1” Accounts (the ones with 2 digits in Account Number) to the sheet “level1”, Copy / Paste of the “Level 2” Accounts (the ones with 4 digits in Account Number) to the sheet “level2”, and so.
7- Exported each sheet “level1”, “level2”, level3", etc… to separate Excel sheets and named the files Level1-To-Import.xlsx, Level2-To-Import.xlsx, etc…
8- I used the import-data tool (not the CoA importer tool) and started to import each file starting from Level1-To-Import.xlsx till the last file.
9- The import-data tool will verify the data, I had to change some old accounts numbers that were used in Default Accounts to be able to upload some accounts (like Cash).
10- All accounts got imported correctly.
11- Next step is to set the Default Accounts in “Company” then delete the old “Standard Accounts”.
This setup worked fine with the following environment:
Variable |
Actual Value Used |
ERPNEXT Version |
v13.2.0 (version 13) |
Frapper Framework |
v13.2.0 (version 13) |
Company Name |
hidden*** |
Company Abbreviation in Setup Wizard |
CC |
Country |
UAE |
Default Currency |
AED |
Chart of Account used in Setup Wizard |
Standard Template |
I hope this helps.