In our previous posts in this series, we talked about how an MboSet is a…
Here is the message:
BMXAA7837E – An error occurred that prevented the <script> script for the null launch point from running.\n\tReferenceError: \"importPackage\" is not defined in <eval> at line number 1.
Here is the start of my script:
If you are like me you have many scripts that import Java packages so this was certainly alarming.
Why is this happening?
Maximo 7.6.1 uses a different scripting engine with the move to JDK 1.8. You may also encounter this with 22.214.171.124 (and newer) if using JDK 1.8. Given that, I wasn’t completely surprised my script didn’t work but I was surprised that there was not more written about encountering this message and what to do if your scripts no longer work after upgrading.
How do I fix it?
Thankfully there is a workaround for your old scripts! Add the following line to the beginning of your script:
This article references how to properly construct your script to take advantage of the new script engine. At least with the workaround above you can get your script working and improve upon it later.