Rebuild Tree
The Rebuild Tree feature is a tool in ERPNext used to correct and refresh the structural integrity of hierarchical data, specifically the Chart of Accounts (CoA). It ensures that the parent-child relationships and display order of accounts are accurately reflected throughout the system.
Issue:
Sometime in the general Ledger report the user selects the Account but the data in the report shows for different account as shown below screenshot.

In this case you can Use the Rebuild Tree so that the user can easily fix this issue
Step-by-Step Guide to Rebuild the CoA Tree
Rebuilding the tree is a quick process.
Step 1: Access the Chart of Accounts Navigate to the Chart of Accounts Tree View:
Accounting > Chart of Accounts
Step 2: Open the Actions Menu In the Chart of Accounts tree interface, locate and click the Menu button (usually represented by three dots or lines) in the top-right corner of the window.
Step 3: Select "Rebuild Tree" From the dropdown menu that appears, select the Rebuild Tree option

After Rebuild tree process is done you can check the GL report shows the correct data in the report
