Monday, Aug. 21, 2017

How to change the default error message in Siebel

Written By:

|

October 28, 2012

|

Posted In:

Requirement:

The requirement is to throw a user friendly message in place of the default error message thrown by escript on the UI.

Say for example, if we have the error message thrown on the UI as shown in screenshot below:

Error_message1

We need to replace this Siebel error message with a User Friendly error message “Error Invoking the Business Service in Siebel

Solution:

Follow the below steps to implement this requirement.
1. In Siebel Tools, place the try, catch and finally block as per the Siebel Bookshelf:
http://docs.oracle.com/cd/E05553_01/books/eScript/eScript_JSLOverview42.html
2. Configure the catch block in your script as below:

Error_message2

Notes:
Just add your Siebel error code in the str.indexOf(“<error code>”) in the catch block and throw a message as per your requirement.

3. Compile the changes in your SRF and launch the Siebel Client to see the above Siebel error message replaced with a user friendly error message as below:

Error_message3



Share This Article

About Author

Gurdeep

Hi, I am sharing my experience to alleviate beginners with open UI and HI version of Siebel CRM. I work in Sun Life Financials and can be reached via IT Tool box as well. Thanks.

Comments are closed.

Leave A Reply