Since May 29th, every SuiteScript I've written in the past that loads a category record now sends an error message email.
The emails states the error as -
Error: UNEXPECTED_ERROR
The scripts all run fine and there is no error with the functioning of the scripts. I still get the data from the category record I've requested. I also now get hundreds of emails with the title of: An unexpected error has occurred.
The code I'm using for loading the category record is:
(If this is the URL for the external script, with the category ID as a parameter catid)
https://forms.netsuite.com/app/site/hosting/scriptlet.nl?script=8&deploy=1&compid=772072&h=139b432f7dada701b5c5&catid=187480&catid=28
then the script contains.
var catParm = param.getParameter('catid');
var catRecord = nlapiLoadRecord('sitecategory',catParm);
The line that contains the nlapiLoadRecord('sitecategory,.... is the one that is stated to give the UNEXPECTED_ERROR
What has changed in NetSuite in the last three or four days that makes this call suddenly throw this error message, while still functioning properly?
Is there another syntax I should be using for loading a category record?
Thanks
Sam W.