The Tally XML format, explained

Tally imports vouchers from a plain XML file, and the structure trips everyone up the first time — particularly the sign convention and the two different ledger-entry collections. Here is what the file looks like, what each tag is for, and the two mistakes that make Tally reject an import.

Start free See pricing
Works with TallyPrime & Tally.ERP 9 · 100 free entries · Secure connector

What you get

How it works

From file to posted vouchers in three steps.

Upload your file

Bank statement (PDF/Excel/CSV), sales or purchase register, journal, or a GST portal file — as-is, no reformatting.

Review the mapping

Every entry is matched to your Tally ledgers. Similar entries are grouped so one click maps a whole month. Rules learn your corrections.

Post to Tally

Clean Receipt, Payment, Sales, Purchase and Journal vouchers land in TallyPrime / Tally.ERP 9 through the secure connector.

Frequently asked questions

Why does Tally say “Voucher totals do not match”?

Almost always the sign convention. In Tally XML a debit is a NEGATIVE AMOUNT with ISDEEMEDPOSITIVE=Yes, and a credit is positive. A voucher whose AMOUNTs do not sum to zero is rejected. The other common cause is putting an invoice's lines in ALLLEDGERENTRIES.LIST — an invoice reads LEDGERENTRIES.LIST, so Tally sees a voucher with no entries at all.

What is the difference between ALLLEDGERENTRIES.LIST and LEDGERENTRIES.LIST?

ALLLEDGERENTRIES.LIST belongs to the accounting-voucher object (OBJVIEW="Accounting Voucher View"). LEDGERENTRIES.LIST belongs to the invoice object (ISINVOICE=Yes, OBJVIEW="Invoice Voucher View"). Use the one that matches the view, or the entries are silently ignored.

How do I set the voucher number?

VOUCHERNUMBER inside the VOUCHER element. If the voucher type uses automatic numbering Tally may assign its own instead. For sales and purchases the invoice number from the source document is usually what you want.

Can one XML file hold vouchers for several companies?

No. SVCURRENTCOMPANY in the request header names the company, and the whole file imports into it. Export one file per company.

Do I have to write the XML myself?

No — that is what LedgerSync is for. Upload the statement, invoice register or GST file, check the mapping, and download a ready Tally XML. The sample below is what comes out.

Which Tally versions read this format?

TallyPrime (all releases) and Tally.ERP 9. The import menu differs slightly: Gateway of Tally → Import → Vouchers in Prime, Import of Data → Vouchers in ERP 9.

Related

Ready to stop typing into Tally?

100 free entries, no monthly reset. Your first import takes about five minutes.

Create your free account