Discussions
Library script files not loading?
I have a scheduled script that I am calling from a suitelet using nlapiScheduleScript. That scheduled script has a main script file and then four other 'Library Script Files' which are defined on the Script record.
When the script is executed, the script error log shows:
Code: UNEXPECTED_ERROR Details: ReferenceError: "MyOtherFunction" is not defined.
"MyOtherFunction" is defined in one of the Library script files.
Has something changed in NetSuite 2010.1 or in the last couple of weeks regarding how the Library scripts are loaded?
The only change I have made is that code that was in three files is now in four (pulled out some common functions to make it easier to re-use them elsewhere) so there is one more file to be loaded. No names have changed, no code has been altered, just removed from file B and put into file D.