Hi All, I wonder if some of you experienced the sa...
# suitecommerce
m
Hi All, I wonder if some of you experienced the same issue? We are having orders failing with the error message: Script execution usage limit exceeded. Unfortunately no logs of the error are being recorded... Has anybody experienced this in the past? Thanks in advanced for your help!
d
Do you have any beforeSubmit event scripts on sales orders? Or are you running scriptable cart in the store?
s
I agree, they're usually the culprits. We have stuff in help center about optimisation, but we also have stuff published on the developer portal: • https://developers.suitecommerce.com/learn-how-external-suitescripts-can-affect-suitecommerce-performance.htmlhttps://developers.suitecommerce.com/make-advanced-customizations-with-scriptable-cart.html#best-practices
m
Hi both thank you for your reply. Yes we do have a few scripts that are triggered before submit. I will do some test turning these off. .And go over the documentation provided. Thanks!
f
NetSuite uses a SuiteScript governance model based on usage units. If the number of allowable usage units is exceeded, the script execution is terminated. You can monitor SuiteScript unit usage using the Script.getRemainingUsage() method
You can also monitor script unit usage by running the script in the SuiteScript Debugger.