Quickbooks File Repair — "Quickbooks Error 'C=342'"
QuickBooks error C=342 signals a damaged data tree inside your company file — the internal index structure QuickBooks uses to organize lists, transactions, and links has lost its integrity. When the program cannot walk that tree cleanly, it halts with the C=342 code rather than risk reading or writing corrupted records.
What C=342 means
QuickBooks stores far more than rows of data. It maintains an internal tree of pointers that connect customers to invoices, items to accounts, and transactions to their splits. A C=342 tells our engineers that one or more branches of that tree no longer resolve to valid records. The accounting data may still be present, but the map that reaches it is broken, so the file cannot open or operate normally.
Symptoms you'll typically see
- QuickBooks throws
C=342while opening the company file or running a report. - Verify Data or Rebuild Data fails partway through and references the same code.
- Lists appear truncated, or specific transactions vanish from view.
- The file behaves normally one session and refuses to open the next.
Common causes
- An interrupted write — a power loss, network drop, or forced shutdown mid-save.
- Growth in a large
.QBWfile that has not been condensed or maintained. - Storing and editing the file directly across an unstable network share.
- Hardware faults on the drive holding the company file or its
.TLGlog.
What you can safely try first
- Make a fresh copy of the
.QBWfile before touching anything, and work only from the copy. - Run Verify Data, then Rebuild Data from the File menu — note any line it reports.
- Copy the file to a healthy local drive and try opening it there, away from the network.
- Confirm the matching
.TLGand.NDfiles are present alongside the company file.
When professional recovery is the safer path
A damaged data tree is recoverable, but repeated Rebuild attempts on a deeply broken index can prune valid records to make the tree resolve — trading data loss for a file that opens. Our team works at the structure level to rebuild the index while preserving your transactions intact. We have the expertise in recovering C=342 files and routinely return them without data loss.
If the error persists or you cannot afford to lose history, talk to our engineers about QuickBooks data recovery and start a recovery. Every case is handled in-house in North America, and our no-data, no-charge policy means you pay only when we recover your file.