Resolve Netsuite Scripting Error “Cannot read property “length” from null”
Category : NetSuite SuiteScript 2.0
Length method can be used only if search record API returns some value. If it returns null, then length method should not be used.
For eg. below code will return a error if search record gives no result-
var results