I'm researching a problem we have since being upgraded. I'm getting ReferenceError errors and I think it may have to do with a Script that has a reference to an object that is undefined.
For example:
Script Record "A"
Script File: fileA.js
Library File: Library.js
Script Record "B"
Script File: FileA.js
Library File: PricingMgr.js
Library File: Library.js
FileA.js contents:
function foo() { // do stuff, great, fine } function methodThatNeedsObjectsDefinedInPricingMgrFile() { // The following object is defined in PricingMgr.js var priceMgr = new PricingMgr(); } Now, ScriptA never invokes methodThatNeedsObjectsDefinedInPricingMgrFile but ScriptB does and that's why it has the PricingMgr.js file included.I'm getting error messages that make me think the interpreter has been changed or is now having a problem with the missing reference. The code is not invoked so it should not have an issue with the missing reference.I just tried running the following script in the debugger and it runs fine: nlapiLogExecution('DEBUG', 'Doing Something', 'I have just done something and you should know about it!!!!!'); function methodThatNeedsObjectsDefinedInPricingMgrFile() { var obj = new SomeCustomObject(); } SomeCustomObject is no defined and there were no errors throw (correct).Head scratcher.....