My Oracle Support Banner

R12 AP: Payment Failing with ORA-00001: unique constraint (AP.AP_INVOICE_PAYMENTS_U1) violated (Doc ID 2007079.1)

Last updated on JUNE 11, 2024

Applies to:

Oracle Payments - Version 12.1.3 and later
Information in this document applies to any platform.

Symptoms

When try to Record Print Status or Format Payment Instruction,  the following error occurs.

ERROR
-----------------------

insert into ap_invoice_payments_all - <date>
ERROR Code : -1
ERROR Msg : ORA-00001: unique constraint (AP.AP_INVOICE_PAYMENTS_U1) violated   
AP.PLSQL.AP_PMT_CALLOUT_PKG..payments_completed - insert into ap_invoice_payments_all - <date>
IBY_DISBURSE_UI_API_PUB_PKG.mark_all_pmts_complete:Fatal: External app callout 'AP_PMT_CALLOUT_PKG.payments_completed', generated exception.
IBY_DISBURSE_UI_API_PUB_PKG.mark_all_pmts_complete:SQL code: -20001
IBY_DISBURSE_UI_API_PUB_PKG.mark_all_pmts_complete:SQL err msg: ORA-20001: APP-SQLAP-10000: ORA-00001: unique constraint (AP.AP_INVOICE_PAYMENTS_U1) violated occurred in
AP_PMT_CALLOUT_PKG.payments_completed
with parameters (Complted Payments Group id  = 4)


STEPS
-----------------------
The issue can be reproduced at will with the following steps:

  1. Log in Payable Responsibility
  2. Navigate to Payments -> Entry -> Payment Manager -> Payment Process Requests
  3. Submit Single Request
  4. After review invoice and payment, Go to the set <Record Print Status> (Print)

Note: This issue can be reproduced when the payment request only include one invoice.
The log will display the < l_check_count: 2>, actually there is only one check payment.

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
Cause
Solution
References


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