Quickbooks File Repair — Error code: C=21
QuickBooks error C=21 appears when QuickBooks tries to close a data file while the program still believes it is partway through recording a transaction -- even though, in most cases, it actually isn't. It is an internal state mismatch rather than a sign of wholesale file loss.
What C=21 means
The error fires at the moment QuickBooks goes to close the company file. Internally it tracks whether a transaction write is in progress; if that flag is still set when the close begins, QuickBooks raises C=21. The good news is that the data you last entered is usually still intact -- the program simply got confused about its own recording state.
Symptoms you'll typically see
- The
C=21code appears when closing the company file or exiting QuickBooks. - It can recur on the same file even after a restart.
- Your most recent entries appear to be present despite the warning.
What you can safely try first
This particular error responds poorly to the usual heavy-handed fixes, so target it carefully:
- Install the latest maintenance release of QuickBooks for your version -- many
C=21cases are addressed by program updates. - Verify that the last data you recorded is still present in the file before doing anything else.
- Note what does not help: moving the data file, reinstalling QuickBooks, and running Rebuild generally have no effect on
C=21, so don't rely on them as the fix.
When professional recovery is the safer path
If C=21 keeps returning after updating, or if you notice that recent transactions are actually missing, the company file may carry deeper damage that the standard tools won't touch. Our engineers can open the .QBW and its .TLG log, resolve the inconsistent transaction state at the data level, and return a file that closes cleanly without losing your work. Everything is handled in-house in North America, and under our no-data-no-charge policy you pay nothing if the data cannot be recovered.
Explore our QuickBooks data recovery service, or start a recovery and our team will review the file.