JavaScript syntax error on line number Y

Document created by anton_serbanescu Employee on Dec 23, 2014Last modified by dave_lesshafft on Mar 1, 2016
Version 2Show Document
  • View in full screen mode
When executing a process that has a map and several map functions with JavaScript custom scripting, it generates something of the following error message:

 

Test execution of <MyProcess> completed with errors. Embedded message: [Function: MyFunction - mine, Scripting (Step 1)]: Error executing custom script: sun.org.mozilla.javascript.internal.EvaluatorException: syntax error (#3) in at line number 3; Caused by: sun.org.mozilla.javascript.internal.EvaluatorException: syntax error (#3) in at line number 3

 

Check the line number specified in the error message.

 

Most likely the syntax used is incorrect.

 

In this particular case, the incorrect 'not equal' representation was used, for example:

 

if (a <> B) { ...; }  ...

 

that is not recognized by java script.

 

It should of been the following syntax:

 

if (a != B) { ...; } ...
1 person found this helpful

Attachments

    Outcomes