Comments in scripts cause a validation error

If you enter a comment in the script for a script action or in the Script Adapter widget, Case Builder might return a validation error.

Symptoms

You create a script that is run from the Script Adapter widget or from a script action in a toolbar or menu. In the script, you add a comment that starts with two forward slashes. If the comment is in certain places within the script, an error is returned when the system validates the script.

Resolving the problem

To avoid this validation error, do not start a comment with two forward slashes. Instead, start the comment with a forward slash and asterisk (/*) and end the comment with an asterisk and forward slash (*/).