|
[QODBC-Desktop] How to Correctly Update TransferInventoryLine Records in QODBC
Posted by William - QODBC Support on 19 October 2026 12:13 PM
|
|
[QODBC-Desktop] How to Correctly Update TransferInventoryLine Records in QODBCProblem Description:When updating Affected products: QODBC Desktop, QODBC Online, QuickBooks Desktop, QuickBooks Online Symptoms:
Cause:Multiple constraints apply when updating TransferInventoryLine records:
Resolution:Step 1: Target Individual Lines CorrectlyTo update only a specific TransferInventoryLine record, include -- Correct: targets only one line via TxnLineID UPDATE TransferInventoryLine SET TransferInventoryLineQuantityToTransfer=5, RefNumber='###1', Memo='sdf' WHERE FQPrimaryKey='772305-xxxxx|772307-xxxxx' If you do not include a line-level identifier in the WHERE clause, all lines associated with that transaction will be updated simultaneously: -- Warning: this updates ALL lines for TxnID 7722DB-xxxxx UPDATE TransferInventoryLine SET ... WHERE TxnID='7722DB-xxxxx' Step 2: Do Not Use FQSaveToCache on UPDATE
-- INCORRECT - FQSaveToCache on UPDATE has no effect UPDATE TransferInventoryLine SET Quantity=5, FQSaveToCache=1 WHERE ... -- CORRECT - remove FQSaveToCache from UPDATE UPDATE TransferInventoryLine SET Quantity=5 WHERE ... Step 3: Ensure From and To Location Refs Are DifferentThe FromInventorySiteLocationRefListID and ToInventorySiteLocationRefListID must point to different physical inventory locations. Using the same value for both generates a QuickBooks error: -- INCORRECT - same value for both FromInventorySiteLocationRefListID='80000013-xxxxx' ToInventorySiteLocationRefListID='80000013-xxxxx' Example Scenarios:Scenario 1 - Updating one line in a two-line transaction: A transfer has two lines (TxnLineID ending in ...490 and ...493). The user needs to update only the first line's quantity. The correct WHERE clause uses UPDATE TransferInventoryLine SET TransferInventoryLineQuantityToTransfer=10 WHERE FQPrimaryKey='772305-xxxxx|772307-xxxxx' Scenario 2 - Updating all lines for a transaction: If you want to update the quantity on every line of a transfer simultaneously, use TxnID without a line-level identifier. All associated lines will be updated in one operation. Additional Notes:
Related Articles:Understanding QODBC Online Table Layouts How to Use FQSaveToCache Correctly QuickBooks Inventory Transfer Reference Keywords:TransferInventoryLine UPDATE FQSaveToCache TxnLineID FQPrimaryKey Inventory Transfer Error 3290 Line Item Update Inventory Site QuickBooks SDK
| |
|
|


