Error "Error - trigger ja_in_ap_aida_before_trg on ap_invoice_distributions_all : ORA-04091: table AP.AP_INVOICE_DISTRIBUTIONS_ALL is mutating, trigger/function may not see it" While Applying Prepayment to Standard Invoice (Doc ID 1673491.1)

Last updated on FEBRUARY 28, 2017

Applies to:

Oracle Financials for India - Version 12.0.6 and later
Information in this document applies to any platform.

Symptoms

On : 12.0.6 version, India AP Localizations

When attempting to apply prepayment to standard invoice,
the following error occurs.

ERROR
-----------------------
APP-SQLAP-10000: User-Defined Exception occurred in
Error from Trigger JAI_AP_IDA_BRIUD_T1
with parameters (&PARAMETERS)
while performing the following operation:
Encountered an error in JAI_AP_IDA_TRIGGER_PKG.BRIUD_T1 Error on ap_invoice_distributions_all : ORA-20007: Error - trigger ja_in_ap_aida_before_trg on ap_invoice_distributions_all : ORA-04091: table AP.AP_INVOICE_DISTRIBUTIONS_ALL is mutating, trigger/function may not see it"


STEPS TO REPRODUCE
--------------------------------------
1. Create a Prepayment
2. Create standard invoice
3. Try applying prepayment to standard invoice

BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, users cannot apply prepayment to standard invoice

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