Back to All Guides
Tally Prime•8 min read•2 December 2026

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.

Bill2Tally Research Team
Bill2Tally Research Team
Tally Prime & GST Automation
Tally Prime XML Import Errors and How to Fix Them

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

ErrorCauseFix
Ledger does not existLedger name not found in the open companyCreate the ledger or correct the name
Stock Item does not existItem not created or spelled differentlyCreate the item or map to the existing one
Unit does not existUnit of measure missingCreate the unit before the item
Voucher totals do not matchDebits and credits differAdd a Round Off line or fix amounts
Voucher date is missingDate not allowed in Educational modeUse 1st, 2nd or 31st, or a licensed Tally
Connection refused on port 9000Tally not running or server offEnable Tally as server on the port
No company open / wrong companyRequest names another companyOpen the right company in Tally
Bad formulaSpecial characters in a name in the requestEscape 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:

  • Tally Prime is running and a company is open.
  • In F1 (Help), Settings, Connectivity, Client/Server configuration, TallyPrime is set to act as Server or Both and the port is 9000.
  • No other program, or a second Tally instance, is already using the port. A second instance often runs on 9001.
  • The Windows firewall allows the connection if the integration runs on another machine.
  • 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.

    See It in Action

    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.

    Tags:#Tally XML#Import Errors#Port 9000#Troubleshooting