■Cause
If you compile a script with a total designated constant character string exceeding 65535, which is the restriction set in Java, the following error that you have mentioned will occur.
*About the constant character string, it includes both character strings designated in designer and what's used within the script.
---
java.lang.Exception: Failed to compile script <File Name> constant is too large
---
The above is a restriction of Java, thus it is difficult to resolve the issue utilizing the product function. Please take the following measure to avoid this issue.
■Workaround
Please verify to see if the issue would resolve by using the script call-up function and by dividing the current process down using multiple scripts.
Please refer to the help section of reference information for more information regarding script call-up.
[Reference Information]
・Script Call-up