Knowledgebase: TroubleShooting
[QODBC-Desktop] Editing SalesOrder Line Items When the Order Contains Grouped Items
Posted by William - QODBC Support on 12 October 2026 10:26 AM

[QODBC-Desktop] Editing SalesOrder Line Items When the Order Contains Grouped Items

Problem Description:

When a QuickBooks SalesOrder contains one or more grouped items (bundle/assembly line items that contain sub-items), standard SQL UPDATE statements against the SalesOrderLine table fail with error 3290 ("The Item XXXXXX is placed in the request in an incorrect order") - even when attempting to update a non-grouped (standalone) line item in the same order.

Affected products: QODBC Desktop, QuickBooks Desktop
Expected outcome: After upgrading to a version that includes bug fix B01674, standard SQL UPDATE statements against SalesOrderLine work normally regardless of whether the order contains grouped items. For older versions, use the ModifyOutwardGroupLine table for grouped-line edits.

Symptoms:

  • UPDATE statements on SalesOrderLine work fine on orders without grouped items, but fail with Error 3290 when any grouped item exists in the order.
  • The error occurs even when the UPDATE targets a completely separate, non-grouped line item - not one of the grouped sub-items.
  • Adding fields like SalesOrderLineSeqNo, SalesOrderLineGroupTxnLineID, or SalesOrderLineGroupSeqNo to the WHERE clause does not resolve the error.
  • Error message: "3290 - The Item XXXXXX is placed in the request in an incorrect order."

Cause:

A bug in QODBC (tracked as B01674) caused updates to fail whenever a SalesOrder contained grouped items - even when the UPDATE targeted a non-grouped line. This was not a limitation of QuickBooks itself, but a defect in how QODBC processed the request.

Root cause: QODBC's query processor did not correctly scope the update to only the targeted line item; the presence of grouped items caused the engine to reject the entire statement.

The fix was first released as hotfix B01674-beta-2024-10-10 and later included in QODBC Desktop v24.0.0.358 RC.

Environment:

ProductVersion / Detail
QODBC Desktop Pre-v24.0.0.358 - affected by B01674. Fixed in v24.0.0.358 RC and later.
QuickBooks Desktop All editions (the issue is in QODBC, not QuickBooks)

Resolution:

  1. Upgrade to QODBC Desktop v24.0.0.358 RC or later. This version includes the fix for bug B01674.

    Download the latest version of QODBC Desktop: Download the QODBC Desktop Installer
  2. Uninstall the current version of QODBC. Close all applications that use QODBC (QuickBooks, MS Excel, MS Access, QRemoteServer, etc.).
  3. Install the updated version. During installation, you can skip the CDKEY step if you are upgrading from a previously activated copy.
  4. Delete the optimizer file and rebuild it.

    Open QODBC Support Wizard and run:
    Sp_optimizefullsync All
    Or manually delete the optimizer file from the QODBC optimizer folder, then open QuickBooks to trigger a rebuild.
  5. Test your existing UPDATE statements. Standard SQL UPDATE against SalesOrderLine now works on orders with grouped items:

Workaround for Older Versions (Pre-Fix)

If you cannot upgrade immediately, use the following approach:

  • For updating grouped line items specifically, use the ModifyOutwardGroupLine table instead of SalesOrderLine:
-- Update a grouped line item's description
UPDATE ModifyOutwardGroupLine
SET ModifyOutwardGroupLineDesc = 'New Description'
WHERE tableName = 'SalesOrder'
  AND TxnId = '8BFF-1481790351'
  AND ModifyOutwardGroupLineGroupTxnLineID = '8C01-1481790351'
  AND ModifyOutwardGroupLineTxnLineId = '8C03-1481790351'

Column reference for ModifyOutwardGroupLine:

  • ModifyOutwardGroupLineDesc - Description field
  • ModifyOutwardGroupLineQuantity - Quantity field
  • ModifyOutwardGroupLineRate - Rate/Price field
  • tableName - Target table (e.g., 'SalesOrder', 'Invoice')
  • TxnId - The SalesOrder TxnID
  • ModifyOutwardGroupLineGroupTxnLineID - The group's line ID (from SalesOrderLine GROUP_TXN_LINE_ID)
  • ModifyOutwardGroupLineTxnLineId - The individual sub-item's line ID
  • As a temporary workaround for non-grouped lines, in QuickBooks Desktop, copy the standalone item line and paste it above any grouped items in the SalesOrder. After reordering, the standard UPDATE on SalesOrderLine may work.

SQL Examples:

After upgrade - Standard UPDATE works normally (no special syntax needed):

UPDATE SalesOrderLine
SET SalesOrderLineDesc = 'New description'
WHERE TxnID = '30F239-1695469384'
  AND SalesOrderLineTxnLineID = '30F23B-1695469384'

Pre-fix - Using ModifyOutwardGroupLine for grouped items:

-- Update quantity on a grouped item in a SalesOrder
UPDATE ModifyOutwardGroupLine
SET ModifyOutwardGroupLineQuantity = 50
WHERE TableName = 'SalesOrder'
  AND TxnID = '8BFF-1481790351'
  AND ModifyOutwardGroupLineTxnLineID = '8C03-1481790351'
-- Update both rate and quantity on a grouped item
UPDATE ModifyOutwardGroupLine
SET ModifyOutwardGroupLineRate = 20, ModifyOutwardGroupLineQuantity = 50
WHERE TableName = 'SalesOrder'
  AND TxnID = '8BFF-1481790351'
  AND ModifyOutwardGroupLineTxnLineID = '8C03-1481790351'

For Inward tables (PurchaseOrder, BillItemLine, ItemReceipt):

-- Update a grouped line in a PurchaseOrder
UPDATE ModifyInwardGroupLine
SET ModifyInwardGroupLineQuantity = 2
WHERE TableName = 'PurchaseOrder'
  AND TxnID = '2420F-1702642410'
  AND ModifyInwardGroupLineTxnLineID = '24214-1702642410'

Discovering Available Columns

To list all available columns on these special tables, use:

sp_columns ModifyOutwardGroupLine
sp_columns ModifyInwardGroupLine

Example Scenarios:

Scenario 1 - Updating a non-grouped item in a mixed SalesOrder:

A customer's SalesOrder contains three grouped items (bundles of sub-items) and five standalone line items. They need to update the description on one of the standalone lines. Before upgrade, any UPDATE to SalesOrderLine failed with Error 3290 as long as grouped items existed in the order. After upgrading to v24.0.0.358+, the standard UPDATE works without modification.

Scenario 2 - Directly editing a grouped item:

A business needs to update the quantity of a specific sub-item within a bundle on a SalesOrder. Since the sub-item is part of a group, they must use ModifyOutwardGroupLine with the group's TxnLineID and the individual item's ModifyOutwardGroupLineTxnLineID.

Additional Notes:

  • Table naming convention: QODBC divides group-item editing into two categories: Outward (Invoice, SalesReceipt, SalesOrder - items shipped out) and Inward (BillItemLine, ItemReceipt, PurchaseOrder - items received).
  • The ModifyOutwardGroupLine table is a virtual/projection table - it does not exist in QuickBooks or any SQL database. QODBC uses it internally to route updates to the correct QuickBooks SDK call for grouped item processing.
  • Never use both approaches on the same order simultaneously. Stick to standard SalesOrderLine UPDATEs after upgrading; only use ModifyOutwardGroupLine when specifically targeting a grouped sub-item (even on older versions).
  • Bug B01674 was first fixed in hotfix B01674-beta-2024-10-10, and included in the stable release QODBC Desktop v24.0.0.358 RC.

QODBC Optimizer Rebuilding and Troubleshooting Understanding QODBC Virtual Tables (ModifyOutwardGroupLine)Understanding QODBC Virtual Tables (ModifyInwardGroupLine)

Keywords:

SalesOrder Line Grouped Items Error 3290 ModifyOutwardGroupLine ModifyInwardGroupLine Bug B01674 Bundle Items Assembly Line SalesOrder UPDATE QuickBooks SDK Hotfix 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).