Tally Prime XML Import Errors and How to Fix Them
Fixes for the errors Tally Prime returns when importing vouchers and masters: ledger does not exist, voucher totals do not match, connection refused on port 9000, voucher date is missing and more.

Most Tally Prime import errors have one of four causes: a master (ledger, stock item or unit) named in the voucher does not exist, the voucher's debits and credits do not balance to the paisa, the wrong company is open, or Tally is not accepting connections on its port. The error text Tally returns usually names the exact master or field, so read it first before changing anything.
Quick reference
| Error | Cause | Fix |
|---|---|---|
| Ledger does not exist | Ledger name not found in the open company | Create the ledger or correct the name |
| Stock Item does not exist | Item not created or spelled differently | Create the item or map to the existing one |
| Unit does not exist | Unit of measure missing | Create the unit before the item |
| Voucher totals do not match | Debits and credits differ | Add a Round Off line or fix amounts |
| Voucher date is missing | Date not allowed in Educational mode | Use 1st, 2nd or 31st, or a licensed Tally |
| Connection refused on port 9000 | Tally not running or server off | Enable Tally as server on the port |
| No company open / wrong company | Request names another company | Open the right company in Tally |
| Bad formula | Special characters in a name in the request | Escape quotes and special characters |
Ledger does not exist
Tally matches ledger names exactly against the masters of the open company. A trailing space, a different abbreviation (Pvt Ltd vs Private Limited) or a ledger created in another company all produce this error. Import masters first, or use a tool that checks and creates missing masters before posting vouchers.
Voucher totals do not match
Every voucher must balance: in Tally XML, debit amounts are negative and credit amounts positive, and their sum must be exactly zero. GST calculated per line and rounded can leave a difference of a few paise from the invoice total. Post that difference to a Round Off ledger. See how the round-off ledger works.
Connection refused on port 9000
Integrations reach Tally Prime over HTTP on port 9000 by default. Check that:
Voucher date is missing
Tally Prime in Educational mode accepts vouchers only on the 1st, 2nd and 31st of a month. A voucher dated any other day is rejected with this message. Use a licensed Tally for real data, or move test vouchers to an allowed date.
Bad formula
Tally reads some requests as formulas. A stock item or ledger name containing a double quote, such as a pipe size written as 1/2", can break the request unless it is escaped. Use the name exactly as stored in Tally and let the integration escape special characters.
How Bill2Tally.ai avoids these errors
Bill2Tally.ai posts vouchers in two phases. First it checks and creates every ledger, stock item and unit the voucher needs under the right group. Then it posts the voucher with a round-off line so it balances to the paisa. The desktop agent finds Tally on ports 9000 to 9003, refuses to post when a different company is open, and escapes special characters in names.
Frequently Asked Questions
How do I enable port 9000 in Tally Prime?
Press F1 for Help, open Settings, then Connectivity, then Client/Server configuration. Set TallyPrime to act as Server or Both, set the port to 9000 and restart Tally Prime.
Why does Tally say ledger does not exist when it does?
The name in the import differs from the master, often by a space or abbreviation, or the ledger exists in a different company than the one open in Tally.
How do I fix voucher totals do not match in Tally?
Make sure debits equal credits to the paisa. A small difference from GST rounding should be posted to a Round Off ledger.
Why are my imported vouchers dated the 1st of the month?
Tally Prime in Educational mode only allows the 1st, 2nd and 31st of each month, so integrations move test vouchers to an allowed date. Licensed Tally keeps the actual date.
Automate Your Invoices Directly into Tally Prime
Connect your bills and bank statements with our zero-entry multimodal AI bridge. 15-minute setup, no TDL plugins needed.
Related Accounting Automation Guides
How to Import Excel Data into Tally Prime (Sales, Purchases and Masters)
Three ways to get Excel data into Tally Prime: the built-in Excel import in TallyPrime 4.0 and later, XML import, and automated import with Bill2Tally.ai. Steps, required columns and the errors to avoid.
GST & AccountingGSTR-2B Reconciliation in Tally Prime: A Complete Guide for 2026
How to reconcile GSTR-2B with your Tally Prime purchase books: where to download GSTR-2B, how invoices are matched, the mismatches that cost input tax credit, and a month-end checklist.
GST & AccountingSection 16(2)(aa) and GSTR-2B: When Input Tax Credit Is Allowed
A plain-language explanation of the ITC conditions in Section 16 of the CGST Act, how GSTR-2B decides what you can claim, the 180-day payment rule, time limits and when ITC must be reversed.