![]()
No Sales Order Id Found in MTL_SALES_ORDERS (Datafix #23) (文档 ID 281836.1)Applies to:Oracle Inventory Management - Version 11.5.10.2 and later Information in this document applies to any platform. Signature: INV_MSO_SALES_ORDER_MISSING Datafix#23 create_mtl_sales_order.sql ident_missing_mtl_sales_order.sqlSymptomsThe Pick Release Process (WSHPSGL) completes in Warning with the following error message. The pick release does not succeed for the item. The sales order is missing from the MTL_SALES_ORDERS table.IDENTIFICATION SCRIPTThe following SQL could be used to help identify the issue on open sales orders with particular organization and item. SELECT distinct a.order_number, a.header_id, a.order_type_id FROM oe_order_headers_all a, oe_order_lines_all c WHERE c.INVENTORY_ITEM_ID = NVL('&EnterItemID', c.INVENTORY_ITEM_ID) AND c.SHIP_FROM_ORG_ID = NVL('&EnterOrgID', c.SHIP_FROM_ORG_ID) AND a.header_id = c.header_id and a.OPEN_FLAG = 'Y' and NOT EXISTS (SELECT 1 FROM mtl_sales_orders b WHERE b.segment1 = to_char(a.order_number))STEPSThis occurs for multiple orders and can be reproduced at will.1. Create/book a sales order. 2. Navigate to Order Management > Shipping > Pick release 3. Run pick release. 4. The program (Pick Select List Generation) completes in warning.ERRORNo Mtl_Sales_Order ID found for oe headerLOG SNIPPETHere is a snippet from the log file: WSHPSGL module: Pick Selection List Generation Pick selection is completed with warning ... Process_Line after fetch wdd Process_Line after trans type [20-MAR-13 13:54:02] Inv_Pick_Release_PVT.Process_Line: No Mtl_Sales_Order ID found for oe header pick release No Mtl_Sales_Order ID found for oe header No Mtl_Sales_Order ID found for oe header [20-MAR-13 13:54:02] PICKREL: l_return_status from process_line is UCauseHere are two possible causes: 1. Case #1: The 'Order Type' (SEGMENT2) from the Key flexfield 'Sales Orders' had the Format Validation checkbox 'Uppercase Only (A-Z)' set to yes. The setting caused the issue as order type was actually in mixed case but the value was saved into the MTL_SALES_ORDERS table as uppercase. 2. Case #2: The data could simply be missing from the MTL_SALES_ORDERS table. This could be a result of a migration issue, database failure, etc. An exact cause has not been determined. SolutionCase 1: Order Type is Mixed Case But Segment is UppercaseIn the first case, the Order Type is Mixed Case But Segment is Uppercase. To correct this issue, take the following steps:
1. Set the value to No for 'Uppercase Only (A-Z)' in the 'Order Type' (SEGMENT2) from the Key flexfield 'Sales Orders'.
2. Compile the flexfield
Case%202:%20Record%20Completely%20Missing%20from%20MTL_SALES_ORDERSIn%20the%20second%20case,%20the%20record%20is%20completely%20missing%20from%20the%20MTL_SALES_ORDERS.%20Take%20the%20following%20steps: %20 %201.%20Confirm%20that%20the%20order%20is%20not%20in%20the%20MTL_SALES_ORDERS%20table%20with%20the%20following%20SQL: select%20*%20from%20mtl_sales_orders%20 %20where%20segment1='&order_number';2.%20If%20no%20value%20exists%20in%20MTL_SALES_ORDERS,%20a%20datafix%20is%20required.%20If%20 existing%20orders%20with%20this%20issue%20cannot%20be%20cancelled%20and%20recreated%20or%20if%20 this%20issue%20can%20be%20reproduced,%20a%20data%20or%20code%20fix%20from%20Oracle%20Support%20is%20 required.%20Please%20check%20for%20high%20priority%20patches%20that%20may%20already%20 resolve%20the%20issue.%20If%20none%20are%20found,%20please%20log%20a%20Service%20Request%20to%20 correct%20the%20data%20in%20MTL_SALES_ORDERS.%20 %20 ReferencesBUG:22552042%20-%20ORDERS%20WERE%20CREATED%20WHEN%20SEGMENT2%20THAT%20WAS%20NOT%20USED%20IN%20SALES%20ORDERS%20KFF %20 BUG:25930927%20-%20DATA%20MISSING%20FROM%20MTL_SALES_ORDERS%20TABLE%20FOR%20MULTIPLE%20SALES%20ORDERS %20 BUG:3829286%20-%20DATAFIX:%20NO%20MTL_SALES_ORDER%20ID%20FOUND%20FOR%20OE%20HEADER %20 |
