Requisitions Are Approved Do Not Create Documents Via "PO Create Documents" Workflow Due to ORA-1422 Error (Doc ID 1068381.1)

Last updated on AUGUST 19, 2015

Applies to:

Oracle Purchasing - Version 12.1 and later
Information in this document applies to any platform.
***Checked for relevance on 11-Feb-2013***


Symptoms

On 12.1.1 find that the CREATEPO (PO Create Documents) workflow fails if the Buyer exists on the Requisition Line but the buyer's employee record has an active Benefits assignment.   It is failing with this error and the Purchase ordder (PO) is not created.  

Activity = GET_BUYER_FROM_REQ_LINE
Error Message = -1422
Error Stack  = ORA-01422: exact fetch returns more than requested number of rows  

Steps to Reproduce
--------------------
1.  Create Requisition with a Buyer on the requisition line that has an active benefits assignment on their employee record (in addition to their primary employee assignment) .
2.  This Requisition should also have data such that the PO Create Documents workflow will launch to create a PO automatically.
3.  When the Requisition is approved and the CREATEPO workflow launched the error occurs.

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