My Oracle Support Banner

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 MAY 20, 2024

Applies to:

Oracle Receivables - Version 12 and later
Information 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"

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


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