QuickBooks Error C=315: Data Damage in the Company File
QuickBooks Error C=315 signals data damage inside the company file; this guide covers what it means, what sets it off, and how to clear it.
C=315 belongs to the C= family of codes, the ones QuickBooks Desktop raises when it cannot read or write a piece of its own database. You typically meet it while opening the company file, saving a transaction, or running a report. It is a data-damage code, so the repair targets the file itself, not the program installation.
What does the C=315 dialog actually say?
The wording varies slightly between releases, but one form dominates the reports we see: "An error has occurred in QuickBooks. Please restart QuickBooks and try again. If the problem persists, contact Intuit Technical Support." The number itself usually sits in the dialog's title or detail line. That closing sentence is the program's stock text, not our advice. When the code first appears during a data check instead, it is listed among the problems Verify Data reports at the end of its scan.
What does the code mean?
Every C= number marks a failed read or write against the company database. C=315 points at the company file itself. One or more records, or the index entries pointing to them, no longer match what QuickBooks expects. Picture a card catalog with a torn card: the book exists, but the pointer is wrong, so the lookup fails. The whole file is rarely ruined. A small, specific part of it is inconsistent, and QuickBooks stops the moment it reaches that part.
What triggers it?
The triggers stay consistent across the files our engineers handle:
- Power loss or a forced shutdown while the file is open. QuickBooks was mid-write, and a record was left half-finished.
- A dropped connection in multi-user mode, most often when the file sits on a network share with no QuickBooks database server managing it.
- An interrupted backup, restore, or update. A sync add-on writing to the file at the wrong moment does the same.
- Faulty storage. Bad sectors on the disk holding the file corrupt whatever lands on them.
- Sheer age and size. A file that has grown for years without a condense carries a huge record count, and damage accumulates along with it.
Fixing it, scenario by scenario
The file still opens. This is the most common situation, and the built-in tools resolve it in many cases.
- Back up before anything else. Open the File menu, choose Back Up Company, then Create Local Backup. Damage is already present, so never repair without a fallback copy.
- If the file lives on a network share, copy it to the local machine and open it there in single-user mode. Repairs across a network link fail more often.
- Run Rebuild Data from the Utilities option under the File menu. Let it close any windows it asks about. The tool can look frozen for long stretches; leave it alone until it reports completion.
- Run Verify Data from the same Utilities menu. If it still finds damage, run Rebuild again. A second pass catches what the first missed.
- Re-sort the main lists. In the Chart of Accounts, choose the Account button at the bottom of the window, then Re-sort List. Repeat for the Items list and the Customer Center list, then verify once more.
Verify still fails, or the file will not open.
- Restore your most recent backup, then run Verify on the restored file before trusting it. Re-enter the work posted since that backup.
- If no clean backup exists, create a portable company file copy from the File menu's Create Copy option, then open it. Restoring a portable copy rebuilds the working file and often clears index-level damage.
- When damage survives both routes, the file needs direct repair beyond the menu tools. Our engineers rebuild the damaged records inside the file, then verify it before and after the work.
The environment, not just the file.
- In a multi-user setup, confirm that only the machine storing the file hosts it. The Utilities option under the File menu shows the hosting state.
- Open the QuickBooks Database Server Manager on that machine and scan the folder holding the file, so the service indexes it correctly.
- Test the disk. Run the operating system's error check on the drive that stores the file. C= codes that recur across different files point at hardware, not data.
- If corruption returns on one machine only, test its memory. Repeated damage on a single host usually has a physical cause.
Keeping it from coming back
- Turn on automatic backups at close, and keep several generations stored away from the host machine.
- Run Verify Data monthly and after any crash. It is the cheapest early warning available.
- Put the host on an uninterruptible power supply. Much of the C= damage we trace begins with a cut or a hard shutdown mid-write.
- Keep the file on a wired connection. Opening it over a VPN, a weak wireless link, or removable media invites the exact dropouts that cause this damage.
- Hold every workstation and the server on the same QuickBooks release, and rescan with the Database Server Manager after each update.
- Condense the file as it grows. Smaller record counts mean smaller, faster, safer files.
A C=315 code is a warning rather than a verdict. Caught early, it usually clears with the built-in tools. Left to recur, it becomes a repair job.