Duplicate Revenue Lines Exist For Opportunities
Last updated on DECEMBER 15, 2016
Applies to:Oracle Fusion Sales Cloud Service - Version 18.104.22.168.0 to 22.214.171.124.0 [Release 1.0]
Information in this document applies to any platform.
'Sub Team' is a custom field in the opportunity revenue line, and there is a groovy at opportunity object for this field which makes it mandatory from the sales stage 3.
Though this field meets the criteria, when the user saves the opportunity, the below custom error pops up -
"Please make sure to update the opportunity revenue line to account for the sub team"
Through data model, when checked revenue line information, it was understood that there were multiple revenue lines that exist for the same opportunity but in the application it is shown with only one revenue line.
Since the rest of the revenue lines do not meet the criteria, the groovy pops up the error message until all revenue lines meet the criteria.
Groovy being used now
def SalesStageabbrv = left(SalesStage,1);
def RevenueObject = ChildRevenue;
def revenueLine = RevenueObject.next();
if(SalesStageabbrv == '2' || SalesStageabbrv =='3'||SalesStageabbrv=='4'||SalesStageabbrv=='5'||SalesStageabbrv=='6' )
if(revenueLine == null)
throw new oracle.jbo.ValidationException('Please add a revenue line.');
if(SalesStageabbrv =='3'||SalesStageabbrv=='4'||SalesStageabbrv=='5'||SalesStageabbrv=='6' )
if(revenueLine != null)
def subteamcheck = (revenueLine.getAttribute('SubTeamAccountedFor_c') );
if( subteamcheck !='Y')
throw new oracle.jbo.ValidationException('Please make sure to update the Opportunity Revenue line to account for the Sub Team.');
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