i have multiple user event scripts that create but...
# suitescript
p
i have multiple user event scripts that create buttons on a sales order based on a field value in the SO. When the button is clicked another script is trigerred that shows a dialog for the user to click from 6 options. When the option is selected the script linked to that button is clicked and then various items with customs costs and rates are imported into the SO. The issue we are having is that in some cases and for some users they are not able to load a sales order and when I check in the browser console I can see various unable to load module errors that show the modules in the 3rd step not loading. Any ideas how I can troubleshoot this? From what I understand - regardless if the button shows on the sales order because the script that loads the values includes a pageInit it will always try and load those scripts.
c
"for some cases" probably leads itself to being permission issues if its working for some and not others. There's also a slight chance of the modules trying to load a server-side only module in a client script which also throws a module loading error. Hard to tell without the code on that one.
👍 1
💯 1
r
Exactly what I was thinking. Could also be a permission error related to code running within the module. This would cause the module to not load properly if erroring early without good logging to see it’s trying to load. For example; we have a script which runs a query for shipping methods on a CS. Some roles didn’t have access to the custom record, so when they loaded the page that error on pageInit was causing problems for everything else later. It was identified via error logs.