Quickbooks File Repair — "Quickbooks Error C=342 (often followed by an IPF in APPCORE.DLL - damaged data tree)"

QuickBooks error C=342 -- often followed by an invalid page fault (IPF) in APPCORE.DLL -- typically indicates a damaged data tree inside the company file and appears when you try to open the file. The combination is telling: C=342 is QuickBooks reporting an internal failure, and the follow-on IPF in APPCORE.DLL is the program crashing as it tries to load a data structure it cannot navigate.

What C=342 means

A C= code reports an internal QuickBooks operation failure. C=342 is commonly linked to a damaged data tree -- the internal hierarchy of records the program walks to load the file. When that tree is corrupt, QuickBooks can fault while reading it, which is why an invalid page fault in a core module like APPCORE.DLL so often follows. The crash on open is the program hitting the damaged branch.

Symptoms you'll typically see

  • C=342 displays while opening the company file.
  • An invalid page fault in APPCORE.DLL follows, closing QuickBooks.
  • The file does not finish loading.
  • A sample file or a second company file opens normally.

Common causes

  • A damaged internal data tree within the .QBW file.
  • Corruption from an interrupted write, network drop, or power loss.
  • A mismatched or damaged transaction log (.TLG).
  • Disk errors on the drive holding the file.

What you can safely try first

  • Copy the company file first and work only on the copy.
  • Open the copy from a local drive rather than a network path.
  • Run Verify Data, then Rebuild Data, on a backed-up copy.
  • Restore your most recent clean backup if one exists.

When professional recovery is the safer path

A damaged data tree that crashes the program on open is usually beyond what Rebuild can fix. Our engineers recover the readable records and rebuild a clean, openable file. We work in-house in North America under a no-data, no-charge guarantee, so there is no cost if recovery is not possible. See QuickBooks data recovery or start a recovery.