Knowledgebase: Setup
[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 QODBC

Problem Description:

When updating TransferInventoryLine records through QODBC, users may encounter errors related to the use of FQSaveToCache on UPDATE queries, or errors about incorrect record ordering when multiple line items share the same parent transaction.

Affected products: QODBC Desktop, QODBC Online, QuickBooks Desktop, QuickBooks Online
Expected outcome: TransferInventoryLine updates succeed by using correct WHERE clause scoping (including TransferInventoryLineTxnLineID for individual line targeting) and avoiding FQSaveToCache on UPDATE statements.

Symptoms:

  • An UPDATE query returns Error: 3290 - The item is placed in the request in incorrect order when updating multiple TransferInventoryLine records with the same TxnID.
  • The update silently changes unexpected lines or all lines for a transaction instead of only the intended row.
  • A QuickBooks error about an invalid inventory site location reference: "The selected location does not belong to the selected inventory site."
  • FQSaveToCache An UPDATE statement has no effect or causes unexpected behavior.

Cause:

Multiple constraints apply when updating TransferInventoryLine records:

  1. FQSaveToCache is only valid on INSERT queries, not UPDATE queries. Including it in an UPDATE statement has no effect and may cause the first line to be deleted or dropped from the request.
  2. When using TxnID in the WHERE clause, all lines for that TxnID are updated. If a transaction has multiple TransferInventoryLine records and you need to update only one specific line, you must include TransferInventoryLineTxnLineID in the WHERE clause.
  3. From and To inventory site location references must be different values. The FromInventorySiteLocationRefListID and ToInventorySiteLocationRefListID represent distinct physical locations; using the same value for both is invalid.

Resolution:

Step 1: Target Individual Lines Correctly

To update only a specific TransferInventoryLine record, include TransferInventoryLineTxnLineID in the WHERE clause:

-- 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

FQSaveToCache is only valid on INSERT queries. Remove it from all UPDATE statements:

-- 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 Different

The 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 FQPrimaryKey='772305-xxxxx|772307-xxxxx' where the second part identifies the specific TxnLineID:

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:

  • UPDATE vs INSERT behavior: FQSaveToCache is valid on INSERT to queue child/line-item records before the parent is committed. On UPDATE, there is no queuing - the record is modified immediately.
  • FQPrimaryKey format: The FQPrimaryKey field uses a pipe (|) separator: [ParentTxnID]|[LineTxnLineID]. Use it to target specific lines in UPDATE queries.
  • QuickBooks validation: Even if the SQL is syntactically correct, QuickBooks validates inventory site locations. Ensure both From and To locations exist and are assigned to the correct inventory sites before updating.

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
(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).