My Oracle Support Banner

Validation Error On Opportunity Revenue (Doc ID 2603571.1)

Last updated on DECEMBER 22, 2020

Applies to:

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


On : version, Opportunities

Validation Error on Opportunity Revenue

We created a groovy script in the opportunityRevenue triggered by a custom field.
Shortly, this groovy script must provide an error every time I add a product in the Opportunity revenue that has a different class than the previous one inserted.
1. If opportunity revenue is blank, user can insert a product belonging to any class.
2. When insert a new product, the system must provide an error if the class is different rather than the previuos one (case 1).

In the code we insert " throw new oracle.jbo.JboException("message") " when the validation of class fails but is printed only when we click "save" on Opportunity.

Why errors appears only when we click save? It is possible to print error immediately when user choose the product?


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

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