Tally XML Import Guide: How to Import Vouchers and Ledgers

TallyXMLAccounting

Moving large volumes of ledgers or vouchers into Tally by hand is slow and error-prone. Tally supports XML import precisely for this, but the file has to follow Tally's own structure. This guide explains how Tally XML import works, what the document contains, and how to get bank and financial data into a format Tally accepts.

What Is Tally XML Import?

TallyPrime and the older Tally.ERP 9 can read data from an XML file that uses the Tally message format. There are two broad categories you can import: masters such as ledgers and groups, and transactions such as payment, receipt and journal vouchers. The XML is not a generic data exchange file — it mirrors the objects Tally already works with internally, which is why a Tally XML file imports cleanly while an unrelated XML does not.

How Is a Tally XML File Structured?

A Tally import file wraps its records in a Tally message envelope. Inside, each object is represented by named elements. Vouchers typically include the voucher date, type, ledger entries and amounts, while master records carry the ledger or group name and its parent. A simplified voucher entry looks like this:

<TALLYMESSAGE>
  <VOUCHER>
    <DATE>20261114</DATE>
    <VOUCHERTYPE>Payment</VOUCHERTYPE>
    <ALLLEDGERENTRIES.LIST>
      <LEDGERNAME>Office Rent</LEDGERNAME>
      <AMOUNT>-45000.00</AMOUNT>
    </ALLLEDGERENTRIES.LIST>
  </VOUCHER>
</TALLYMESSAGE>

The exact tag set depends on the voucher type and the Tally release. Because the structure is detailed, generating the XML from structured source data is more reliable than writing the tags by hand.

How Do You Import XML into Tally?

The general import flow is the same in concept across Tally releases, even where menu labels differ:

  1. Place the Tally XML file in a location the Tally installation can access.
  2. Open the Import option from the gateway or menu, and choose whether you are importing masters or transactions.
  3. Select the XML file and confirm the file format and behaviour, such as how existing records are handled.
  4. Run the import and review the report Tally produces, noting any records that were skipped.

Exact menu paths and shortcuts vary between Tally.ERP 9 and TallyPrime, so follow the labels shown in your installed release.

How to Prepare Data for Tally XML

The cleanest route is to start from structured financial data and convert it to Tally XML rather than retyping it. FinFormats builds Tally-importable XML entirely in your browser, with the file processed locally and never uploaded. The same engine covers the common source formats:

Before converting, standardise ledger names and check that dates and amounts are aligned to the correct rows. This reduces skipped records and duplicate ledgers.

Common Import Errors and Fixes

  • XML parsing or malformed file errors. Usually caused by a document that is not well-formed or does not use the Tally envelope. Use a generated Tally XML file instead of editing tags manually.
  • Unknown ledger or group. The voucher references a master that does not exist. Import or create the masters first, or clean the source so names match existing ledgers.
  • Duplicate records. Inconsistent naming in the source makes Tally treat the same ledger as two. Normalise names and identifiers before conversion.
  • Missing or misread transactions. For PDFs this happens with scanned, image-only or badly laid out files. Text-based, regular PDFs convert reliably; scanned copies require OCR.

Where This Fits in Your Workflow

Tally XML import is most valuable during migration, bulk data entry and period-end processing, where creating records one by one would dominate the work. Converting the source into a properly structured Tally XML file keeps the processing on your device, lets you review the data before import, and turns the Tally step into a predictable menu action with a report you can check.

Frequently Asked Questions

Can Tally import XML files?›

Yes. TallyPrime and Tally.ERP 9 can import both masters (ledgers and groups) and transactions (vouchers) from a Tally-compatible XML file through the Import menu. The XML must follow the Tally message structure rather than being an arbitrary XML document.

What is the difference between importing masters and transactions?›

Masters create or update ledgers and groups, while transactions create vouchers such as payments, receipts and journal entries. You choose the appropriate import type in Tally and point it at an XML file that contains matching elements.

Why does Tally show an XML parsing error?›

This usually means the file is not well-formed XML, uses tags Tally does not recognize, or does not match the expected Tally message envelope. Validating the structure and using a generated Tally XML file rather than hand-editing avoids most of these errors.

Can I convert a bank statement to Tally XML?›

Yes. A text-based bank statement PDF, or QFX, QBO, OFX, QIF, IIF and CSV files, can be converted into Tally-importable XML. Scanned or image-only PDFs need OCR first because they have no extractable text.

Will importing XML create duplicate ledgers?›

Tally matches records by their identifiers and names. If the source uses consistent names and IDs, existing ledgers are reused instead of duplicated. Cleaning the source before conversion helps keep the ledger list tidy.

Do I need to know XML to import data into Tally?›

No. You only need a correctly formatted Tally XML file. A converter builds the tags and voucher structure for you, so the import step is a menu action rather than manual coding.

Prefer One-Click Conversions?

Install the free FinFormats Chrome extension. Everything still runs locally on your device — no upload, no sign-up, no watermark.

Get it on the Chrome Web Store

← Back to the blog