Quickbooks File Repair — C=342 (usually followed by an IPF in APPCORE.DLL - damaged data tree)
QuickBooks error C=342 is usually followed by an illegal program fault (IPF) in APPCORE.DLL and indicates a damaged data tree inside the company file. It is classed as a recoverable error, but the IPF crash that follows tells you QuickBooks hit a structure it could not navigate.
What C=342 means
QuickBooks organizes much of its data in tree structures, indexes and linked records that let it find information quickly. C=342 signals that one of those data trees is damaged. When QuickBooks walks into the broken branch, the core program component APPCORE.DLL faults, producing the illegal program fault that often accompanies this error. Because the damage is structural, it tends to recur on the same action until the tree is repaired.
Symptoms you'll typically see
C=342appears, frequently followed by a crash referencingAPPCORE.DLL.- QuickBooks closes unexpectedly when a specific list, report, or screen is opened.
- The crash reproduces reliably on the same step.
- Verify Data reports structural damage.
Common causes
- A damaged index or data tree inside the company file.
- An interrupted write that left a tree structure inconsistent.
- A network drop during multi-user activity.
- Accumulated corruption in a large, long-running file.
What you can safely try first
- Back up the company file before attempting any repair.
- Run Verify Data, then Rebuild Data, so QuickBooks attempts to re-index the damaged tree.
- Restart QuickBooks and the computer before retrying the action that crashes.
- If a backup predates the crashes, test-restore it on a healthy machine.
When professional recovery is the safer path
If Rebuild does not stop the APPCORE.DLL crash, or C=342 returns each time you reach the damaged area, the data tree is broken beyond what re-indexing can fix. Each crash on a damaged tree risks corrupting more of the structure. Our engineers rebuild the damaged trees and indexes directly from the file, recovering the records QuickBooks crashes trying to read.
For a file that keeps crashing, see QuickBooks data recovery or start a recovery. Recovery is performed in-house in North America under our no-data, no-charge guarantee.