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.
Unexpected Error creating subscriptionchangeorder
The error:
{ "type": "error.SuiteScriptError", "name": "UNEXPECTED_ERROR", "message": null, "stack": ["createRecord(N/record)", "<anonymous>(/SuiteScripts/jshepler/RL_sheptest_rt.js:8)", "createRecord(N/record)"], "cause": { "type": "internal error", "code": "UNEXPECTED_ERROR", "details": null, "userEvent": null, "stackTrace": ["createRecord(N/record)", "<anonymous>(/SuiteScripts/jshepler/RL_sheptest_rt.js:8)", "createRecord(N/record)"], "notifyOff": false }, "id": "076c1977-d483-4e48-a5a5-0f61f3863b9a-2d323031382e30322e3039", "notifyOff": false }Code to reproduce it:
/** * @NApiVersion 2.x * @NScriptType Restlet */ define(["require", "exports", "N/record"], function (require, exports, record) { Object.defineProperty(exports, "__esModule", { value: true }); var _get = function (request) { var changeOrder = record.create({ type: record.Type.SUBSCRIPTION_CHANGE_ORDER }); }; exports.get = _get; });
0