Technical reference
Tally to Zoho field mapping
How fields in a Tally XML export are turned into Zoho Books records, and the error codes you may see along the way.
Field mapping
These are the main translation rules applied to each ledger in the export:
| Tally XML field | Zoho Books field | What happens |
|---|---|---|
| LEDGER.NAME | account_name | Trimmed, XML entities decoded, duplicates flagged |
| LEDGER.PARENT | account_type | Matched against Tally’s predefined groups |
| LEDGER.OPENINGBALANCE | opening_balance | Sign converted (a negative amount is a debit in Tally) |
| LEDGER.PARTYGSTIN | gst_treatment, gstin | Checksum verified, state code taken from the first two digits |
GST ledgers to tax groups
Tally usually has one ledger per rate, such as Input CGST 9%. Zoho Books uses tax rates and tax groups instead. Matching ledgers are combined into a group like this:
zoho_tax_group_example.json
{
"tax_name": "GST 18%",
"tax_percentage": 18.0,
"tax_type": "tax_group",
"sub_taxes": [
{ "tax_name": "CGST 9%", "tax_percentage": 9.0, "account_id": "acc_cgst_output_9" },
{ "tax_name": "SGST 9%", "tax_percentage": 9.0, "account_id": "acc_sgst_output_9" }
]
}Error codes
ERR_TB_VARIANCE_NONZEROTotal debits do not equal total credits. Check the sign of opening balances.ERR_GSTIN_INVALID_CHECKSUMA GSTIN failed the check-digit test. It is usually a typing error in the party master.ERR_DUPLICATE_PARTY_MASTERTwo or more ledgers map to the same customer or vendor but have different PANs.
Last updated: Draft, review before publishing