My Oracle Support Banner

Calculate Par Average Usage (IN_PAR_USAGE) process is failing at Step IN_PAR_USAGE.Process.UBackOrd. (Doc ID 2572322.1)

Last updated on JULY 22, 2020

Applies to:

PeopleSoft Enterprise SCM Inventory - Version 9.2 to 9.2 [Release 9]
Information in this document applies to any platform.

Symptoms

On : 9.2 version, Manage Inventory

Issue

_____________

Calculate Par Average Usage (IN_PAR_USAGE) process is failing at Step IN_PAR_USAGE.Process.UBackOrd.


Error

__________




 error. Stmt #: 1723 Error Position: 42 Return: 1427 - ORA-01427: single-row subquery returns more than one row
Failed SQL stmt: UPDATE PS_IN_PAR_TAO4 SET QTY_REQ_STD = ( SELECT PS_IN_PAR_TAO4.QTY_REQ_STD + QTY_REQUESTED_BASE - QTY_PICK_BASE FROM PS_IN_DEMAND WHERE SOURCE_BUS_UNIT = PS_IN_PAR_TAO4.BUSINESS_UNIT AND CUST_NAME = PS_IN_PAR_TAO4.INV_CART_ID AND SHIP_CUST_NAME2 = PS_IN_PAR_TAO4.COMPARTMENT AND INV_ITEM_ID = PS_IN_PAR_TAO4.INV_ITEM_ID AND REQUEST_DATE BETWEEN ((TO_DATE('2018-06-21','YYYY-MM-DD')) + ( (30 - 1) * -1)) AND TO_DATE('2018-06-21','YYYY-MM-DD') AND IN_FULFILL_STATE BETWEEN '50' AND '70' AND BCKORDER_FLAG = 'Y' AND DT_TIMESTAMP = ( SELECT MAX(DT_TIMESTAMP) FROM PS_IN_DEMAND WHERE SOURCE_BUS_UNIT = PS_IN_PAR_TAO4.BUSINESS_UNIT AND CUST_NAME = PS_IN_PAR_TAO4.INV_CART_ID AND SHIP_CUST_NAME2 = PS_IN_PAR_TAO4.COMPARTMENT AND INV_ITEM_ID = PS_IN_PAR_TAO4.INV_ITEM_ID AND REQUEST_DATE BETWEEN ((TO_DATE('2018-06-21','YYYY-MM-DD')) + ( (30 - 1) * -1)) AND TO_DATE('2018-06-21','YYYY-MM-DD') AND IN_FULFILL_STATE BETWEEN '50' AND '70' AND BCKORDER_FLAG = 'Y')) WHERE PROCESS_INSTANCE = 463124 AND CART_REPLEN_OPT = '01' AND EXISTS ( SELECT 'X' FROM PS_IN_DEMAND WHERE SOURCE_BUS_UNIT = PS_IN_PAR_TAO4.BUSINESS_UNIT AND CUST_NAME = PS_IN_PAR_TAO4.INV_CART_ID AND SHIP_CUST_NAME2 = PS_IN_PAR_TAO4.COMPARTMENT AND INV_ITEM_ID = PS_IN_PAR_TAO4.INV_ITEM_ID AND REQUEST_DATE BETWEEN ((TO_DATE('2018-06-21','YYYY-MM-DD')) + ( (30 - 1) * -1)) AND TO_DATE('2018-06-21','YYYY-MM-DD') AND IN_FULFILL_STATE BETWEEN '50' AND '70' AND BCKORDER_FLAG = 'Y') AND NOT EXISTS ( SELECT 'X' FROM PS_IN_DEMAND WHERE SOURCE_BUS_UNIT = PS_IN_PAR_TAO4.BUSINESS_UNIT AND CUST_NAME = PS_IN



STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Run IN_PAR_USAGE


Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.