Recovering Transactions From a QuickBooks .TLG Transaction Log File
When a QuickBooks company file is damaged, the paired .TLG file can be used with your last backup to restore transactions entered between that backup and the crash.
When QuickBooks Desktop writes a transaction, it does not immediately commit every entry to the main .QBW file. Instead, recent transactions are recorded in a transaction log file (.TLG) that sits alongside the company file. Under normal operation, QuickBooks integrates those logged entries into the .QBW file during a clean backup or an orderly shutdown. When the company file is damaged by a crash, power loss, or storage failure before that integration happens, the .TLG file retains the transactions entered since the last successful backup. Our engineers use that log, paired with the matching backup, to recover the entries that would otherwise be stranded.
How the .TLG File Works
Every time you create, edit, or delete a transaction in QuickBooks, the change is appended to the .TLG file. The log is sequential: it records each operation in order, along with enough structural information for QuickBooks to replay those operations against a company file that is in the exact state it was in when the log was started. That last phrase is the critical detail. The .TLG file is not a standalone database. It is a delta — a record of changes relative to a specific starting point. To recover transactions from it, you need the backup that corresponds to that starting point.
What You Need Before Starting
Gather the following before attempting recovery:
- The last successful backup — a
.QBBfile created through QuickBooks' built-in backup routine. This is the anchor point. The.TLGfile must have been created at the same time as this backup. If a newer backup was made after the one you plan to use, the log will have been reset and the earlier transactions are no longer recoverable through this method. - The matching
.TLGfile — located in the same folder as your working.QBWfile. It will have the same base filename (for example,Company.QBWandCompany.TLG). - The QuickBooks Admin password — required to open the restored file. If the backup is password-protected, you need that password as well.
- A working copy of QuickBooks Desktop at the same version year or newer than the one that created the files.
The Recovery Process
- Create a dedicated recovery folder on your local drive — not a network share or cloud-synced folder. Name it something clear, such as
TLG_Recovery. - Copy — do not move — the
.QBBbackup file into the recovery folder. Work on copies only so the originals remain untouched. - Copy the
.TLGfile into the same recovery folder. It must sit in the same directory as the backup you are about to restore, and it must be the.TLGthat was active at the time of the damage. - Open QuickBooks Desktop and restore the
.QBBbackup into the recovery folder. When prompted, choose a new filename for the restored.QBWso you do not overwrite anything. - Close QuickBooks completely once the restore finishes. This is essential — QuickBooks must not be holding the file open during the next step.
- Verify the
.TLGfilename matches the restored.QBWfilename exactly. If the restored company file is namedCompany_Recovered.QBW, rename the.TLGfile toCompany_Recovered.TLG. The base filenames must be identical, including capitalization. - Reopen QuickBooks and open the restored company file. QuickBooks will detect the
.TLGfile alongside the.QBWand automatically attempt to integrate the logged transactions into the company file. You may see a brief progress indicator. - Run Verify Data (File → Utilities → Verify Data) once the file opens. Review the results for any integrity issues.
Signs the Recovery Worked
Open the restored file and check the most recent transactions — the ones entered between your last backup and the crash. They should appear in the appropriate registers, reports, and transaction lists. Run a Transaction List by Date covering the gap period and confirm the entries are present with correct amounts, names, and accounts. Compare key account balances against what you expect.
When the Problem Runs Deeper
This procedure works when the .TLG file is intact and the backup is the correct match. If the .TLG file itself is corrupted, if a newer backup has already reset the log, or if the backup file is damaged, QuickBooks will not be able to replay the transactions. In those situations, the log data can sometimes still be extracted through direct analysis of the .TLG file structure, but that requires specialized tools and expertise beyond what QuickBooks Desktop provides. Our QuickBooks TLG recovery engineers can evaluate the log directly when the built-in replay fails. If the underlying .QBW file has structural damage — damaged target chaining, broken transaction links, or list corruption — the recovered transactions may not integrate cleanly even from a healthy log, and the file will need repair before or alongside recovery.