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.
Before Load failing, but only generating error while in Admin
I set up a ServerScript to run before a case record loads (bnnBeforeLoad() function).
Strangely, it only errors when I try to create a case from the Administrator role. Everyone else who has access to create a case does not experience this nor do they generate any errors in the error log for the script. I am also the owner of the script.
I get the following error:
Date & Time: 9/7/2006 5:02 pm
Record Type: Case
Internal ID:
Script: bnnBeforeLoadCase
Error: UNEXPECTED_ERROR
Stack Trace:
#bnnBeforeLoadCase.nlapiSearchRecord(customrecord12, null, [Lcom.netledger.app.common.scripting.nlobjSearchFilter;@a6766b4, [Lcom.netledger.app.common.scripting.nlobjSearchColumn;
0