Record Print Status Fails With ORA-00001: unique constraint (AP.AP_INVOICE_PAYMENTS_U1) violated (Doc ID 2007079.1)

Last updated on AUGUST 03, 2015

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,  the following error occurs.

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

insert into ap_invoice_payments_all - 12-MAR-15 08.04.40.757865000 PM -04:00
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 - 12-MAR-15 08.04.40.768424000 PM -04:00
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

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