News
Skip to guide

Integration (Excel Power Query, XML API, ODBC)

TallyPrime Integration: Excel, XML API, ODBC and Power Query

Move data in and out of TallyPrime 7.2 - Excel import and export, the XML API for automation, ODBC connectivity and Power Query reporting.

Quick answer

Import Excel into TallyPrime without the rejected-row surprises. Excel import limits, XML API, ODBC and Power Query explained by a Tally Certified Partner.

TallyPrime is a closed accounting book, but it is not a closed data silo. It exports, it imports, and it serves data over an API - which is how a finance team stops re-keying numbers between Tally and Excel.

Choose the right route

What you want to doTool to useHow it works
Bring ledgers, items and opening balances in from ExcelExcel importGateway of Tally > Import of Data > Masters, point at an Excel sheet and map the columns
Take a report out for analysisExport (Alt+E)Export any report to Excel, XML, JSON or JPEG
Push and pull data automaticallyXML APITallyPrime serves XML over HTTP on your own machine, so any script or service can read and write
Build dashboards in Excel or Power BIODBC or Power QueryConnect to the Tally data source and treat the ledgers as tables
Send data to a website or portalXML APIPost vouchers, masters and reports from your own server to the Tally API

Excel import, step by step

  1. Prepare one row per master, with a header row that names each field exactly as Tally expects.
  2. Gateway of Tally > Import of Data > Masters (or Vouchers for voucher data).
  3. Choose the file, then map each spreadsheet column to the Tally field in the mapping screen.
  4. Create or alter masters as part of the import - tick the option if you want the import to create masters that do not exist yet.
  5. Import, then review the log. Every rejected row is listed with the reason.
  6. Verify with a display list before you close the screen - an import that half worked is worse than no import.

Where a direct Excel import goes wrong

Tally's own import screen works, but every check is yours:

  • Column headers have to match the field names Tally expects. Rename a header and that column simply stays unmapped.
  • The import log lists rejected rows with a reason. Somebody still has to read it, and rejected rows are common when dates, GSTINs and numbers arrive in a different format.
  • Excel can change a date or a number while formatting a cell, so the value you typed is not always the value Tally receives.
  • Creating masters during an import can add duplicates when the same ledger already exists under a slightly different name. Most companies already have masters, so they should be maintained in Tally rather than re-imported every month.
  • A partly successful import is the dangerous one: some rows land, some do not, and the books look plausible until somebody checks a report.

How our integration team handles it

Our Data Integration service is built for exactly this. It maps your Excel columns to Tally fields once instead of every month, applies error validation logic before values reach the books, and can schedule recurring bulk imports so a monthly file is not a manual chore. The same secure API bridges cover XML API posting, ODBC/data-bridge reporting and marketplace or CRM sync.

That is the difference between a menu path you found online and a repeatable workflow configured and supported for your company. If your file shape changes, you are not the one debugging a rejected-row log.

The XML API

TallyPrime can run as a server on your workstation or server and answer requests over HTTP, typically on port 9000. You send a request that names the company and the data you want, and TallyPrime returns XML (JSON is supported as well).

  • Point the request at the local host and the company, so the data never leaves the office network unless you build it that way.
  • The usual pattern is a scheduled script that reads the day's vouchers and writes them into your own reporting store.
  • Keep the request templates in version control and log every request - an integration that nobody can debug is worse than a manual export.
  • Always open and close the company session inside a single request. A half-open session is the most common cause of empty responses.

ODBC and Power Query

Install the Tally ODBC driver, enable the ODBC connection from Company Features, then connect any ODBC-compliant tool (Excel Power Query, Power BI, Tableau) to the Tally data source and treat masters, ledgers and vouchers as tables.

With Power Query the same job is done through the API: choose Get Data > Web, point it at the Tally request URL and let Power Query parse the XML response. Refresh on a schedule and your dashboard updates without anybody exporting anything.

Practical advice

  • Import masters once and maintain them in Tally. Re-importing the same masters every month is how duplicates appear.
  • Export to CSV rather than Excel for anything that will be loaded into another system - it avoids date and number formatting surprises.
  • Keep a sandbox company for integration testing so a bad request never touches live books.
  • Log every automated write. Automation without a log is an audit finding waiting to happen.

Frequently asked questions

How do I import ledgers from Excel into Tally Prime?

Use Gateway of Tally > Import of Data > Masters, select the Excel file, map the columns to Tally fields and import. Always check the import log for rejected rows.

What is the Tally XML API used for?

It lets your own scripts or services read and write TallyPrime data over HTTP - typically for automated exports, website posting or a reporting warehouse.

Can I connect Power BI or Power Query to TallyPrime?

Yes, through the ODBC driver or by calling the XML API from Power Query. Both give you ledgers, masters and vouchers as refreshable tables.

Which export format should I use for another accounting system?

Prefer CSV for structured data and XML for systems that accept it. Excel is fine for analysis, but date and number formatting can change values on import.

WhatsApp