My Oracle Support Banner

Raise Error Text .. Data Validation Massage And Multiple Lines (Doc ID 1235633.1)

Last updated on MARCH 17, 2020

Applies to:

Siebel Data Validation Manager - Version SIA[21219] and later
Information in this document applies to any platform.
Checked for Relevance on 04-Aug-2015


With the standard DVM validation messaging the error message is displayed in seperate lines within the Popup Message Box whereas when we trigger the DVM via script then the Formatting is lost and the messages are displayed in a single line within the Popup box.
Steps to reproduce the issue

Select validation on BC>Opportunity and the Fields--Primary Revenue Amount and Sales Stage should not be NULL..The Data Validation Message fires on WriteRecord Event.
1)Go to Administration- Data Validation>Validation Messages> Create the following 2 Records
Message Code Message Level Message Source Message Text
Revenue Fail Example Example1 Error:The Revenue value is not defined
Sales Stage Fail Example Example2 Error: The Sales Stage Fail
2) Create a new Rule Set and Check the Flag Aggregate Errors
Name -TestOne
3)Create the following 2 Rules for the above Rule Set (Note--DVM Message triggers only when the Expression evaluates to False)
Name Expression Business Component Apply To Return Code
One [Primary Revenue Amount] is not null Opportunity Current Record Revenue Fail
Two [Sales Stage] is not null Opportunity Current Record Sales Stage Fail
4) Administration-Runtime Events>Action Sets
Name--Test Event One
Action Type--BusService
Business Service Name--Data Validation Manager
Business Service Context--"Rule Set Name", "Test One", "Enable Log", "Y"
5) Create a new Event
Object Type--BusComp
Object Name-Opportunity
Action Set Name--Test Event One

When I try to create a new Record in the Opportunity List Applet without entering Revenue and Sales Stage Fields, The validation Messages are appearing correctly in 2 lines as follows:
Error:The Revenue value is not defined
Error: The Sales Stage Fail

Added the following Script to trigger the DVM Message
function BusComp_PreWriteRecord ()

// force dvm
// supplement standard dvm message
var StrErrMsg = "My error: The following fields must be populated \r"+e.errText;
return (CancelOperation);

return (ContinueOperation);

On updating or Creating an Opportunity Record With null values in Revenue and Sales Stage Fields the following message appears:
My error: The following fields must be populated
Error:The Revenue value is not defined Error: The Sales Stage Fail (SBL-APS-00802) (SBL-EXL-00151)------The DVM Messages are appearing in single line.


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.