Semantic Error Messages
The following table describes error messages that can result from semantic errors when Siebel Tools compiles ST eScript code. A semantic error message starts with the following error prefix: Semantic Error around line line#. For more information, see Semantic Warnings.
Message | Examples | Cause |
---|---|---|
Argument argument_label either type does not correct or is not defined. |
|
The argument passed to the function is not of the data type specified in the function definition, or is not defined in the function definition. In the example, the arg2 parameter must be of type Number, as specified in the function definition, but the function passes the parameter, which is in the following string format: new date |
No such predefined property property_label in class object_type. |
|
The property is not defined in the class object. In this example, you can specify only string object properties. The following property is not a property of the string object: Prop1 |
[] operator can only apply to Object, Buffer or Array class. |
|
The script is trying to use the [] operator for a type other than an object, buffer, or array. |
Type mismatch: L: left_type; R: right_type. |
Example 1 Example 2
|
A value that belongs to one data type is assigned to a strongly typed variable of another data type. For more information, see Using Strongly Typed and Typeless Variables. |
Return type is wrong. Defined return type is return_type. |
|
The actual return type is different from the defined return type. Siebel CRM cannot implicitly convert the actual return type to the defined type. |
No such label label defined. |
|
The label referenced in a Break statement or a Goto statement is defined. You must make sure the label name is correct and that the label is defined in the code. In the example, if the Break statement is to resume at the labl location, then you must define the labl label. |
Continue out of loop. |
|
A continue command attempts to branch to a label that is not in a loop. |
Label redefined. |
|
A label already exists that possesses the same name. |
function function_label is double defined. |
|
A function already exists that possesses the same name. In the example, you must define the function with a name other than the following name: fn |
Calling function function_label with insufficient number of arguments. |
|
You did not provide all of the arguments that the function requires. The number of arguments you include must equal the number specified in the function definition. In the example, the following function requires two character arguments: fn |
Cannot access property property_name on native type. |
|
You cannot write code that assigns a property to a variable that is of a primitive data type, such as char, float, or bool. In the example, because chars is a primitive data type, you cannot assign it to the following property: a.m_prop |
Object_name is an invalid object type. |
|
If you use Siebel eScript that is strongly typed, then you must specify a valid data type in the declaration of the variable. In the example, the following variable is not a defined object type obj1 For more information, see Using Strongly Typed and Typeless Variables. |
Indiscriminate usage of goto. |
|
This script uses a Goto statement to attempt a branch to a With statement block from outside of the With statement block. |