SuiteScript 1.0 MODULE DOES NOT EXIST ERROR?

Answered

Hi all,

I have SuiteScript 1.0 thats encounters an error

 

“{\”userEvent\”:null,\”internalId\”:null,\”code\”:\”MODULE_DOES_NOT_EXIST\”,\”details\”:\”Module does not exist: /BP_SL_Fulfill_FreightCalc.js$792369.js\”,\”stackTrace\”:{\”[Ljava.lang.String;\”:[\”main(BP_SL_Fulfill_FreightCalc.js$792369:59)\”,\”(BP_SL_Fulfill_FreightCalc.js$792369:251)\”]},\”type\”:\”nlobjError\”,\”suppressNotification\”:false}

 

Found out that  this line of code is whats causing it

var soRec = nlapiLoadRecord(‘salesorder’, soId, {recordmode:’dynamic’});

 

Tried removing the recordmode dynamic and still the issue persist

 

Anyone have idea to resolve it?

Beginner Asked on May 22, 2023 in SuiteScript.
Add Comment
1 Answer(s)
Best answer

If you are certain that the below line of code is causing the error:

var soRec = nlapiLoadRecord(‘salesorder’, soId, {recordmode:’dynamic’});

I would assume that the nlapiLoadRecord is triggering other User Event scripts on beforeLoad

Beginner Answered on May 22, 2023.

Yeah youre right. Already fixed it. Thanks!

on May 22, 2023.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor   Become a Sponsor