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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
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