Error When Clicking On "Receive" JBO-27122: SQL error during statement preparation. ORA-01427: single-row subquery returns more than one row. (Doc ID 2135217.1)

Last updated on AUGUST 23, 2016

Applies to:

Oracle iProcurement - Version 12.2.4 and later
Information in this document applies to any platform.

Symptoms

On : 12.2.4 version, Desktop Rcv/Returns/Correction

When attempting to receive PO from iProcurement, the following error occurs.

ERROR
-----------------------
Exception Details.
 oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (select prhr.rcv_transaction_id, prhr.creation_date,
prhr.transaction_date, prhr.employee_id, prhr.receipt_num, prhr.item_id,
prhr.item_description, prhr.vendor, prhr.shipment_header_id,
rcvt.vendor_id, (select requisition_line_id from po_requisition_lines_all where line_location_id = rcvt.po_line_location_id) AS req_line_id,
decode(nvl(to_char(prhr.item_id), ICX_RVW_RATING_UPDATE_PKG.checkreviewaccess(rcvt.REQUISITION_LINE_ID,rcvt.po_line_location_id)), 'N', 'WriteDisabled', 'WriteEnabled') AS WRITE_SWITCHER
from por_rcv_home_receipts_v prhr INNER JOIN rcv_transactions rcvt on rcvt.transaction_id = prhr.rcv_transaction_id
where PRHR.EMPLOYEE_ID = :1
and prhr.creation_date >= sysdate-60) QRSLT ORDER BY creation_date desc, rcv_transaction_id desc
 
## Detail 0 ##
java.sql.SQLException: ORA-01427: single-row subquery returns more than one row


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Entering Iproc and want to click on "Receive" and receive following error. Attached file "1".
To see exception details. Attached file "Error message".

It works fine for other users but not for this specific user.

BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, user cannot do receiving.

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms