Calling AR_RECEIPT_API_PUB.CREATE_CASH Returns Error ORA-01422: Exact Fetch Returns More than Requested Number of Rows When Two Customers with Same Name Exist
(Doc ID 2968043.1)
Last updated on AUGUST 15, 2023
Applies to:
Oracle Receivables - Version 12 and laterInformation in this document applies to any platform.
Symptoms
When calling AR_RECEIPT_API_PUB.create_cash to create a receipt in Oracle Receivables by passing the customer's name as parameter and in the database there are two different customers with the same name, the API is returning the below error message:
ORA-01422: exact fetch returns more than requested number of rows
The FND debug log showed the following:
ar.plsql.Find_Value_In_Cache 1 Get_Id: Value not found. Entity: CUSTOMER_NAME Value: <Name_of_customer_being_passed>
ar.plsql.Get_Cross_Validated_Id 4 EXCEPTION: Get_Cross_Validated_Id() CUSTOMER
ar.plsql.Default_cash_ids_from_values 4 EXCEPTION: Default_cash_ids_from_values()
ar.plsql.Default_cash_ids_from_values 1 Create_cash_1: -1422
ar.plsql.Default_cash_ids_from_values 1 Create_cash_1: ORA-01422: Exact fetch returns more than requested number of rows"
ar.plsql.Get_Cross_Validated_Id 4 EXCEPTION: Get_Cross_Validated_Id() CUSTOMER
ar.plsql.Default_cash_ids_from_values 4 EXCEPTION: Default_cash_ids_from_values()
ar.plsql.Default_cash_ids_from_values 1 Create_cash_1: -1422
ar.plsql.Default_cash_ids_from_values 1 Create_cash_1: ORA-01422: Exact fetch returns more than requested number of rows"
Changes
None
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 |