Notes from production
Write-ups from real NetSuite problems — what the logs showed, the theory that turned out to be wrong, and what actually fixed it.
-
Fixing “(intermediate value).warn is not a function” in SuiteScript
It looks like a logging problem. It's a mismatch between your
define()array and your callback parameters — and the reason it appeared out of nowhere is worth knowing. -
Reading a NetSuite stack trace
UNEXPECTED_ERRORis NetSuite saying it doesn't know either. How to work backwards to the line that actually broke — and why the page came back full of zeroes instead of failing. -
Is the error you're chasing the cause, or just a symptom?
An integration failure that looked like a payment script bug. Undeploying the script changed nothing — and that five-minute test reframed the whole investigation.
-
SSS_USAGE_LIMIT_EXCEEDED in a Suitelet, not a Map/Reduce
Caching and smaller batches only defer it. The fix is not searching records you never needed.
-
41 seconds to 1.5: replacing N queries with one pass
What changed, and how to tell when a per-row lookup should have been a join.