Back to Blog|Technical Support

How to Resolve 'Ledger Does Not Exist' Import Errors in Tally Prime

June 20, 20269 Min ReadCA Rakesh Sharma
Last Updated: July 15, 2026 | Reviewed by Chartered Accountant

Importing vouchers from e-commerce spreadsheets, payment gateway files, or external CRM exports is a common practice to save time on data entry. However, a frequent issue during imports is the **Tally Prime Import Error: Ledger does not exist**.

This error stops the import process, leaving you with failed transactions. Let's look at how to locate the cause of this error in the log files and resolve it.


1. Why Does the Import Fail?

When importing XML or Excel transaction files, Tally Prime matches the text in your files against existing ledger accounts. If the names do not match, Tally fails to map the vouchers.

Common causes of these name mismatches include:

  • Trailing or Leading Spaces: A ledger named `"ABC Enterprises "` (with a trailing space) in your Excel file will not match `"ABC Enterprises"` in Tally.
  • Spelling Variations: Small spelling differences (e.g., `"Axis Bank"` vs. `"Axis Bank Ltd"`).
  • Missing Ledgers: Transaction records for new vendors or customers whose ledger accounts have not yet been created in Tally.

2. Steps to Identify and Resolve the Error

Follow these steps to debug and resolve import exceptions:

Step 1: Check the Import Log File (tally.imp)

Open your file explorer, navigate to the folder where Tally Prime is installed (usually `C:\Program Files\TallyPrime\`), and open the text file named **`tally.imp`**.

Scroll to the bottom of the file to see the latest logs. Look for lines like:Line: 243: Import Error: Ledger "Sundry Creditors Mumbai" does not exist.This tells you the exact ledger name that is causing the import to fail.

Step 2: Clean Ledger Columns in Excel

To remove trailing spaces and clean ledger columns in Excel before importing:

  1. Open your transaction file in Microsoft Excel or Google Sheets.
  2. Insert a temporary column next to the ledger name column.
  3. Use the **`TRIM`** formula: `=TRIM(A2)` (assuming column A contains the ledger names) to remove leading and trailing spaces.
  4. Copy the formula results, paste them as **Values** over the original ledger column, and delete the temporary column.

Step 3: Define Ledger Aliases in Tally Prime

If a vendor name frequently appears in different formats in your source files:

  1. Go to **Gateway of Tally > Alter > Ledger** and select the ledger.
  2. In the **Alias** field (below the Name field), enter the alternative spelling or format (e.g., "ABC Enterprises").
  3. Save the ledger. When Tally imports vouchers, it will match both the primary name and any aliases, helping prevent import errors.

3. Utilizing Tally Prime Excel Mapping Templates

For TallyPrime Release 4.0 or higher, you can map columns during import:

Go to **Alt + O (Import) > Manage > Mapping Templates**. Create a new transaction template.

Map the ledger names from your Excel columns to Tally's default fields. If a ledger name does not match, you can define fallback rules to map transactions to a suspense account.

C
CA Rakesh SharmaExpert Reviewer

Chartered Accountant & Accounting Automation Specialist

Last Verified: June 20, 2026
TallyPrime FY 2026-27 (v4.0+)
Ready to save time?

Stop Manual Voucher Entry.

TrulyInvoice automates your complete invoice workflow and syncs directly to Tally Prime.

No credit card · 14-day free trial

01

Upload Invoice

Drag & drop PDFs, scans, or photos.

02

AI Extraction

Line items, tax, and ledgers mapped.

03

1-Click Review

Verify extracted details on dashboard.

04

Direct Sync

Vouchers created instantly in Tally Prime.

Chat with us