Exception On Creating Opportunities

(Doc ID 2341392.1)

Last updated on DECEMBER 20, 2017

Applies to:

Oracle Fusion Sales Cloud Service - Version 11.12.1.0.0 and later
Information in this document applies to any platform.

Symptoms

On : NA version, Opportunities

Exception on creating opportunities

Getting an exception while updating an opportunity, Exception is:

Exception in expression "oracle.apps.sales.opptyMgmt.revenues.model.entity.RevenueEO" trigger "U_Populate_BU_CheckDuplicates" : oracle.jbo.ReadOnlyAttrException Attribute set for OptyModifiedFlag in entity OpportunityEO failed
at "oracle.apps.sales.opptyMgmt.revenues.model.entity.RevenueEO" trigger "U_Populate_BU_CheckDuplicates" line 4


Code snippet thats causing the issue.

setAttribute('Part_c', ItemNumber)

This is set on the BeforeUpdate trigger on Opportunity Revenue object.

This is preventing sales reps ability to create new opportunities.

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


""Exception in expression "oracle.apps.sales.opptyMgmt.revenues.model.entity.RevenueEO" trigger "U_Populate_BU_CheckDuplicates" : oracle.jbo.ReadOnlyAttrException Attribute set for OptyModifiedFlag in entity OpportunityEO failed
at "oracle.apps.sales.opptyMgmt.revenues.model.entity.RevenueEO" trigger "U_Populate_BU_CheckDuplicates" line 4
"""


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
Getting an exception while updating an opportunity, Exception is:
Exception in expression "oracle.apps.sales.opptyMgmt.revenues.model.entity.RevenueEO" trigger "U_Populate_BU_CheckDuplicates" : oracle.jbo.ReadOnlyAttrException Attribute set for OptyModifiedFlag in entity OpportunityEO failed
at "oracle.apps.sales.opptyMgmt.revenues.model.entity.RevenueEO" trigger "U_Populate_BU_CheckDuplicates" line 4


BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, users cannot update the opportunity.

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