|
[QODBC-Desktop] Troubleshooting - VehicleMileage table showing deleted records
Posted by Jack - QODBC Support on 05 April 2018 12:06 PM
|
|
Troubleshooting - VehicleMileage table showing deleted recordsProblem Description:I am using QODBC for working with QuickBooks. I can delete the VehicleMileage record. After deleting a record from the VehicleMileage table in QuickBooks, the deleted record continues to appear when querying the table through QODBC. For example:
The deleted record is still returned in the query results. However, the following UNOPTIMIZED query returns the correct data:
Solution:This behavior in the "VehicleMileage" table is due to a limitation in the QuickBooks SDK. QODBC's Optimizer relies on the TxnDeleted information provided by the QuickBooks SDK to identify and remove deleted transaction records from its optimized cache. Unfortunately, the QuickBooks SDK does not report deleted VehicleMileage records through the TxnDeleted mechanism. This issue is limited to VehicleMileage table and does not affect other tables. As a result, QODBC is unable to detect that a VehicleMileage record has been deleted, causing the Optimizer to continue returning the deleted record. VehicleMileage table issue is a QuickBooks SDK issue and is outside the control of QODBC. The issue has been reported to Intuit for resolution.
Resolution:To work around this QuickBooks SDK limitation, QODBC Version 18.0.0.326 introduced a change to the VehicleMileage table. Beginning with QODBC v18.0.0.326:
No changes to your SQL queries are required after upgrading to version 18.0.0.326 or later. Workaround for Earlier Versions:If you are using QODBC v18.0.0.325 or any earlier version, use the UNOPTIMIZED keyword when querying the VehicleMileage table to retrieve the latest data directly from QuickBooks. Example
Using the UNOPTIMIZED keyword bypasses the Optimizer and returns the current records from QuickBooks, including the correct deletion status. Summary:
| |
|
|


