ivan
03/30/2023, 8:51 PMvar file = render.transaction({
entityId: currentRecord.id,
printMode: render.PrintMode.PDF
});
The script's execution log shows an error:
{
"type": "error.SuiteScriptError",
"name": "UNEXPECTED_ERROR",
"message": null,
"stack": [
"createError(N/error)",
"runMyAction(/SuiteScripts/myscript.js:49)"
],
"cause": {
"type": "internal error",
"code": "UNEXPECTED_ERROR",
"details": null,
"userEvent": null,
"stackTrace": [
"createError(N/error)",
"runMyAction(/SuiteScripts/myscript.js:49)"
],
"notifyOff": false
},
"id": "25ccd38c-7866-4d65-8f25-ef0b6bd7bde7-2d323032332e30332e3330",
"notifyOff": false,
"userFacing": false
}
How can I debug this further?