In the course of using NetSuite, you may encounter a nondescript “UNEXPECTED_ERROR.” We’ve encountered this too and are documenting the scenarios in which this comes up.
Computers simply do as they were told - whether by you or the core NS engine developers.
SuiteScript
- When attempting to load a file with an invalid internal DI
- When using the
N/emailmodule and the author or recipient does not have an email address - When merging templates (emails or PDF) and passing in a JS string instead of integer as the Template ID or a RecordRef