My Oracle Support Banner

When Declaring A Function In Business Service Server Script In WebTools An Error Is Received When Using Keyword Function (Doc ID 2819441.1)

Last updated on FEBRUARY 14, 2022

Applies to:

Siebel CRM - Version 21.5 and later
Information in this document applies to any platform.

Symptoms

Script with text Function Name is throwing and error when saving in WebTools.

  1. Open Siebel WebTools and navigate to Business Service.
  2. Add in general > declarations

    function test (val, name)

    {var = "\n Function X \n";}

  3. An error is received when trying to save.

              You can only define one function per script. Multiple functions found:
              * test
              * X

This error also occurs when using the word "function" in RaiseErrorText, e.g.:

TheApplication().RaiseErrorText("This function is expecting an input value.");"

Please review this input and make any needed updates.

 

Cause

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
Symptoms
Cause
Solution
References


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