Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
portlet Script giving me nlapiLoadFile - UNEXPECTED_ERROR
Is there a reason why a portlet script would produce the following error:
CODE: UNEXPECTED_ERROR
In the portlet script (running as admin), I am simply trying to get the URL for the current script, so want to load the file and then call getURL. Doing the following throws the above error:
var file = nlapiLoadFile((nlapiGetContext()).getScriptId());
I tested the getScriptId independently and it is returning the string ID correctly. Curious if this is a known error or I am doing something incorrectly.
0