Question
The following error occurred. What is the cause and workaround?
java.lang.Exception: Failed to compile script <filename> Too many constants.
Answer
Cause
This error occurs due to a Java limitation when compiling a script in which the total number of string constants defined exceeds 65535.
*String constants include not only strings specified in Designer, but also those used inside the script.
java.lang.Exception: Failed to compile script <filename> Too many constants.
The above is a limitation of the Java specification and cannot be worked around by HULFT Square's product functionality.
Please consider the following workaround.
Workaround
Try splitting the current process into multiple scripts and using Call Script operation to execute the scripts, and see if the error can be resolved.
Call Script
https://www.hulft.com/help/en-us/HULFTSquare/Content/Designer/Connector/proc_call_script.htm
Comments
0 comments
Article is closed for comments.