Will Naclerio
When
November 2026
Area
Operations
My role
Diagnosis, the recovery tool (built with Claude Code), and the cutover
Tools
QuickBooks SDK, qbXML

Rebuilding the accounting file over a weekend

The orders team lost the custom fields they work from every day. By Monday morning they were working again in a repaired file, and every transaction was accounted for.

At a glance
986 of 986transactions replayed
0errors in the final run
1 weekendfrom cutover to a working Monday

What broke

Item custom fields stopped showing up in multi-user mode. The orders team depends on them, so this stopped real work.

Ruling things out

I checked versions, hosting, permissions, and cache files first. Then I wrote a small read-only app that asked QuickBooks directly what it had stored. The field definitions were still there; the screens just couldn't see them. That meant the file itself was damaged. I traced the start of it to a bulk item import.

The repair that made it worse

QuickBooks has a standard condense and rebuild. I ran it on a copy before touching anything real, and it threw the copy's balance sheet off by millions. So I set it aside and found an older backup that passed the multi-user test.

The tool

Everything entered after that backup still had to come back. I built a converter and runner that sent 3,893 requests through the QuickBooks SDK. It kept document numbers, the links between orders and invoices and between purchase orders and bills, payment applications, and custom fields. It could pick up where it left off after any stop, and it would refuse to write to the live file.

Cutover weekend

I swapped the files, restored 97 line notes the replay had dropped, built a re-attach list for 1,171 attachments, and cleared 11.4 GB of old copies off the server.

Result

986 of 986 transactions and 41 of 41 list records came across with zero errors. Total assets and receivables matched to the penny, and invoices, sales orders, and payments matched by count and by dollars. The company avoided paying for an outside data recovery or a forced migration, and the toolkit is ready if we ever need it again.

Lessons

  • Test a repair on a copy first. The standard fix was the thing that would have hurt us.
  • "No errors" isn't proof. Reconcile counts and dollars.