Tally Prime TDL Basics: What TDL Is and How to Load It

In brief

TDL (Tally Definition Language) is the language TallyPrime itself is built in. An add-on is a .tdl text file or a compiled .tcp file that changes Tally's screens, reports or buttons. You load one under F1 > TDLs & Add-Ons > F4, or through tally.ini. TallyWhatsApp is one example: its TDL adds a Send WhatsApp button.

TallyPrime sales voucher with extra Send WhatsApp and Send To buttons that a TDL add-on placed in the right-hand button bar
A real example of what a TDL does: the bottom two buttons on the right bar were added by an add-on, not by Tally.

This beginner's guide explains TDL without any code, covering what TDL is, the difference between the file types, how to load and remove an add-on safely, and how to judge whether a TDL is trustworthy. When you are ready to read real code, move on to our TDL tutorial for a Send WhatsApp button.

What is TDL in TallyPrime?

TDL is Tally Definition Language, the development language of TallyPrime. Tally's developer reference explains that TallyPrime reads its default TDL and any user TDL as one program, which is why an add-on can change almost any screen, report or menu.

In practice, every screen you use in Tally, such as the sales voucher, the Day Book or the balance sheet, is described in TDL, and an add-on simply adds or modifies those descriptions, for example by placing an extra button on the voucher screen or an extra column in a report.

TDL is also non-procedural for most purposes: you describe what a screen should contain, and Tally decides how to draw it. Procedural steps exist too, inside functions, which is how add-ons perform actions such as exporting a PDF.

Because definitions are interpreted when TallyPrime starts, administrators should restart the application after modifying any TDL file, and organisations running several installations should distribute identical add-on versions to every workstation to avoid inconsistent behaviour between computers.

What is the difference between .tdl, .tcp and add-on packages?

FormatWhat it isTypical use
.tdl or .txtPlain text source code that anyone can readSmall customisations, developer work, open add-ons
.tcpA compiled TDL project, which protects the source codeCommercial add-ons from Tally partners
Add-on packageA TDL plus a Windows program installed togetherFeatures that need things TDL cannot do alone, such as a WhatsApp session

A TCP file is produced when a developer compiles a TDL project, and Tally explains how to load one on its loading a TCP file page. Both formats load the same way, and Tally's notes on Tally.ERP 9 customisations in TallyPrime confirm that TCP files did not need recompiling for TallyPrime.

How do you load a TDL file in TallyPrime?

You do not need coding skills to load a file; simply follow the path that Tally documents in its TDL configuration help.

  1. Open TDL Management: In TallyPrime, press F1 (Help) and choose TDLs & Add-Ons, or press Ctrl+Alt+T from anywhere.
  2. Manage local TDLs: Press F4 to open the TDL Configuration screen.
  3. Allow loading: Set Load selected TDL files on startup to Yes.
  4. Choose the file: Select it with Select from Drive, or type the full path with Specify Path.
  5. Accept and check: Accept the screen, then confirm that the file shows as loaded in the TDL Management report.

The second method uses tally.ini, and Tally.ini is the configuration file in the Tally program folder. Adding User TDL = Yes and a TDL = line with the file path has the same effect, and installers usually use this method. For example, the TallyWhatsApp installer writes its tally.ini lines automatically, so you only open TDL Management to confirm the file is listed.

Which TDL terms will you meet in add-on documentation?

You do not need to write code, but a few terms appear constantly in add-on manuals and support conversations, and Tally's developer reference defines them all.

TallyWhatsApp tray dashboard showing pending, sent, sending and failed counters, the WhatsApp QR pairing panel and licence status
The Windows half of an add-on package: TallyWhatsApp's dashboard, which works alongside its TDL file inside Tally.

How do you remove or switch off a TDL?

Open the same F4 screen and either remove the file from the list or set Load selected TDL files on startup to No. Tally's own FAQ recommends this step when troubleshooting a Memory Access Violation error, because disabling add-ons is the quickest way to tell whether one of them is the cause.

Packaged add-ons should be removed through Windows Settings, then Apps, so that their Windows components are uninstalled too, and the TallyWhatsApp uninstaller, for instance, removes its own tally.ini lines.

Is it safe to load a TDL file?

A TDL runs inside Tally with the same access as Tally itself, so it can read, and potentially change, company data. That power is useful, and it also means you should apply a few simple rules.

What are common uses of TDL for Indian businesses?

Businesses use TDL for custom invoice formats, extra fields such as transporter or vehicle details, approval rules before saving, and reports that Tally does not include by default; distributors frequently commission additional voucher fields for transporter details, while accounting practices prefer customised statutory reports and reconciliation views. Many add-ons also print the e-invoice IRN and QR code that the GST e-invoice portal issues. Integrations are another large group, and Tally's COM DLL support in TDL lets an add-on call an external Windows program.

WhatsApp sending is a good example of that integration pattern. The TallyWhatsApp TDL adds a Send WhatsApp button to voucher screens, with Alt+J on most vouchers, Alt+S on receipts, payments and journals, and Alt+L on ledgers, and it hands each exported PDF to a Windows service that holds the WhatsApp connection. Our explainer on how TDL-based WhatsApp automation works covers that design.

Should you write your own TDL or use an add-on?

Writing your own makes sense for small, stable changes such as a print layout, especially if a Tally partner maintains it. Ready-made add-ons make sense when the feature involves outside systems, ongoing updates or support, which is the case for messaging, payments and e-invoicing integrations.

Our comparison of Tally customisation options weighs TDL, add-ons and API integrations, and the TallyPrime to WhatsApp TDL product page shows a finished add-on you can try free for 14 days.

Frequently asked questions

What does TDL stand for?

Tally Definition Language. Tally's developer reference describes it as the language used to build TallyPrime's own reports, forms, menus and configuration screens.

Can a TDL damage my company data?

A TDL can change what Tally does, including writing data, so only load files from developers you trust, and test every unfamiliar add-on on a backup company before using it on live books.

How do I turn a TDL off?

Open F1 > TDLs & Add-Ons > F4 and set Load selected TDL files on startup to No, or remove the file from the list; Tally's own FAQ recommends the same step for isolating TDL-related errors.

Do I have to load the TallyWhatsApp TDL myself?

No. Its installer writes the necessary entries into tally.ini automatically, so you only open the TDL Management screen to confirm that the file appears in the list.

See a working TDL add-on in your own Tally

Try TallyWhatsApp free for 14 days on your Windows PC, with every feature unlocked, including Gold multi-PC mode. No card needed.

Download 14-Day Free Trial TDL Product Page

Related guides