[BUG-13456] Code could not be compiled

All of sudden all scripts start throwing this error. In the log files, I’ve seen the Loggers ‘script’, ‘ComponentModel’, and ‘ClientSession’ with Messages stating they cannot run functions “runAction” and “valueChanged”. All of the stack traces are similar if not the same:
Script - runAction.txt (2.4 KB)
ComponenetModel - valueChanged.txt (1.8 KB)

This bug seemed to start occurring when we migrated our project to a new gateway server though I’m not 100% sure. It occurs in the designer and the client sessions. Restarting the gateway fixes the issue temporarily.
Hopefully the stack traces can provide some insight but let me know if I should provide anything else.

Could you post your script as well?

It was happening to all my scripts. The first script on which I noticed it was happening I started commenting out lines until I was down to an empty script. I then created a new onClick script and left it blank and that was throwing the error too so I’m afraid the issue isn’t with the scripts themselves. :pensive:

Hi @nburt,

We have a ticket for this and I have someone looking at it right away. I’ll update you once I know more.

1 Like

We believe that this is caused when you alter a file in the user-lib/pylib folder. Can you confirm or deny that this is the cause for you as well?

This issue started to occur when we moved our project to a new gateway server using a gateway backup, so most of the files in the user-lib/pylib folder have a modified date of April 1st which is when we did the migration, but we never manually altered any of these files.

We did drop a python library called ‘suds’ in this folder but we did this long before the issue started happening.

Interestingly, I didn’t get the error this morning when I started working on the project (which surprised me). So I could try altering a file in this directory to see if I can reproduce the bug later today

Interesting. We were only able to reproduce this issue by altering a file in the pylib folder, and we got that reproduction scenario fixed for the 8.0.0 release. If you find another reproduction scenario please let us know.