Resolve Error: “UNEXPECTED_ERROR: [object Object]” from Generate Depreciation Schedule in Fixed Asset Management Module

Product: NetSuite 2023.1

SuiteApp/Bundle: Fixed Assets Management | Bundle ID: 464363 

Scenario

User Generate Depreciation Schedule for Fixed Asset Management bundle but resulted to the error above. This error is a Defect for the bundle addressed in Defect 623558.

Solution

Starting Fixed Asset Management 21.1, the map reduced scripts are now using SuiteScript 2.1. This brings the change on JSON.stringify output of Error objects now as {}. See article 92821 Differences Between SuiteScript 2.0 and SuiteScript 2.1.

If a TypeError is a pure JavaScript Error object, the error becomes an empty object, thus, the field is not being shown in the error.

Leave a comment

Your email address will not be published. Required fields are marked *