Knowledgebase
[QODBC-ALL] Resolving "#DELETED#" Records When Restoring QuickBooks Backup via QODBC
Posted by William - QODBC Support on 12 October 2026 08:37 AM

[QODBC-ALL] Resolving "#DELETED#" Records When Restoring QuickBooks Backup via QODBC

Problem Description:

When a customer restores a QuickBooks company-file backup to their local test machine and then refreshes external database queries (e.g., Microsoft Access) via QODBC, all records from restored lists appear as #DELETED#. Queries cannot update or link these records because the ListID values in the restored file differ from those in the original production file.

Affected products: QODBC Desktop, QuickBooks Desktop, MS Access
Expected outcome: After installing a fixed QODBC build, queries refresh normally on restored company files without producing #DELETED# rows.

Symptoms:

  • Restored QuickBooks company file contains customers/invoices/items that were in the original production file.
  • QODBC queries on those tables return rows with #DELETED# values instead of actual data.
  • Refreshing MS Access queries fails or produces corrupt joins because ListID-based foreign keys no longer match.
  • Deleting the optimizer file and rebuilding does not resolve the issue on its own.

Cause:

QuickBooks assigns a new ListID to every list record when a company file is restored from backup. A customer that existed in production with one ListID gets a different ListID in the restored test file. QODBC's optimizer cache still references the old ListIDs from the previous version of the file, causing it to report those rows as deleted (#DELETED#).

This was tracked internally as Bug B01738. The root cause is a mismatch between the optimizer's cached key references and the new ListIDs generated after restore. The issue affects all QODBC builds prior to the fix release.

Environment:

ComponentDetail
QODBC Version All builds prior to the B01738 fix (pre-v24.0.0.358)
QuickBooks Desktop All editions (Pro, Premier, Enterprise)
External Tool MS Access, Excel, or any ODBC client querying QODBC

Resolution:

Step 1: Install the Fixed Build (Recommended)

The bug was fixed in QODBC Desktop v24.0.0.358 (Release Candidate). If you have not already upgraded:

  1. Uninstall the current QODBC version. Start → All Programs → QODBC Driver for QuickBooks → Uninstall QODBC.
  2. Delete the optimizer file:
    C:\Users\<YourUserName>\AppData\Roaming\QODBC Driver for QuickBooks Online
  3. Remove residual DLLs (if they exist):
    - fqqb32.dll from C:\Windows\SysWOW64
    - fqqb64.dll from C:\Windows\System32
  4. Restart the machine.
  5. Download and install the latest version of QODBC Desktop: Download the QODBC Desktop Installer
  6. Skip the CDKEY step during installation if prompted.
  7. Restart Windows.
  8. Rebuild the optimizer: Open the QODBC Support Wizard and run:
    Sp_optimizefullsync All

Additional Notes:

  • After restoring a backup: Always delete the optimizer file and run Sp_optimizefullsync All after restoring any QuickBooks company-file backup to a different machine or filename. This is good practice even without this bug, because ListIDs change on every restore.
  • QB SDK limitation: The QuickBooks SDK does not provide a way to preserve ListIDs across backups - each restore generates fresh GUIDs for all list records. QODBC simply reports what the SDK returns.
  • Test vs Production separation: Never use a restored test file as a long-term mirror of production. ListID drift will accumulate with every restore cycle and eventually cause data integrity issues in any linked database.

QODBC Optimizer - How to Enable, Rebuild, and Troubleshoot Performance How to Setup QODBC Optimizer

Keywords:

Bug B01738 #DELETED Deleted Records QuickBooks Backup Restore ListID Mismatch MS Access Optimizer Cache Sp_optimizefullsync QB SDK Limitation v24.0.0.358
(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please complete the captcha below (we use this to prevent automated submissions).