Rebuild Tree in ERPNext: Fixing the Chart of Accounts Structure
The Rebuild Tree feature is a tool in ERPNext for correcting and refreshing the structural integrity of hierarchical data specifically the Chart of Accounts (CoA). It makes sure the parent-child relationships and display order of accounts are accurately reflected throughout the system.
The issue
Sometimes in the General Ledger report, a user selects one account but the report shows data for a different account. This is a sign that the account tree’s structure is out of sync. In this case, you can use Rebuild Tree to easily fix the issue.
Step-by-step: rebuilding the CoA tree
Rebuilding the tree is a quick process.
- Access the Chart of Accounts. Navigate to the Chart of Accounts tree view: Accounting > Chart of Accounts.
- Open the Actions menu. In the tree interface, click the Menu button (usually three dots or lines) in the top-right corner of the window.
- Select Rebuild Tree. From the dropdown that appears, choose the Rebuild Tree option.
Once the rebuild is done, check the General Ledger report again, it should now show the correct data for the selected account.
NOTE
Rebuild Tree fixes the structure of the account hierarchy the parent-child links and ordering not your underlying transactions. It corrects how accounts are organised and reported, so your ledger data itself stays untouched.
TIP
If a report ever shows data for the wrong account, or the Chart of Accounts tree looks misordered, reach for Rebuild Tree first, it’s quick, safe, and resolves most structural display issues without touching your accounting entries.
Related Topics
- Chart of Accounts
- General Ledger
- Account
SUMMARY
Rebuild Tree corrects and refreshes the structure of hierarchical data in ERPNext, chiefly the Chart of Accounts, ensuring parent-child relationships and display order are accurate. It’s the fix when the General Ledger report shows data for a different account than the one selected. To rebuild, go to Accounting > Chart of Accounts, open the menu in the top-right corner, and select Rebuild Tree; afterwards the GL report shows the correct data. It fixes structure only, leaving your transactions untouched.