Hello.
I configured Dunning Letters at the Invoice level but getting "SSS_MISSING_REQD_ARGUMENT" error when I send the letter. I reviewed dunning script errors but couldn't find this error on the list. The closest on missing reqd argument doesn't apply as I already edited the workflow to filter for only customers and invoices with a dunning procedure. I also turned off the scheduler for the original workflow.
Steps to Reproduce:
- Navigate to Dunning Email Sending Queue.
- Select any of the lines
- Click Send
- Result: Error notice screen received (see below)
- But the email is still delivered to the recipient.
Error Details:
{"type":"error.SuiteScriptError","name":"SSS_MISSING_REQD_ARGUMENT","message":"search.lookupFields: Missing a required argument: id","id":"","stack":["Error\n at /SuiteBundles/Bundle 392827/com.netsuite.dunningletter/ss2/src/dunning/module/queue/action/send.js:17:14\n at Array.forEach (native)\n at process (/SuiteBundles/Bundle 392827/com.netsuite.dunningletter/ss2/src/dunning/module/queue/action/process.js:31:8)\n at apply (/SuiteBundles/Bundle 392827/com.netsuite.dunningletter/ss2/src/dunning/module/common/Request.js:28:37)\n at Array.forEach (native)\n at run (/SuiteBundles/Bundle 392827/com.netsuite.dunningletter/ss2/src/dunning/module/common/Request.js:29:44)\n at Request.handle (/SuiteBundles/Bundle 392827/com.netsuite.dunningletter/ss2/src/dunning/module/common/Request.js:33:12)\n at Object.onRequest (/SuiteBundles/Bundle 392827/com.netsuite.dunningletter/ss2/src/dunning/component/su/su_dunning_queue.js:83:12)"],"cause":{"type":"internal error","code":"SSS_MISSING_REQD_ARGUMENT","details":"search.lookupFields: Missing a required argument: id","userEvent":null,"stackTrace":["Error\n at /SuiteBundles/Bundle 392827/com.netsuite.dunningletter/ss2/src/dunning/module/queue/action/send.js:17:14\n at Array.forEach (native)\n at process (/SuiteBundles/Bundle 392827/com.netsuite.dunningletter/ss2/src/dunning/module/queue/action/process.js:31:8)\n at apply (/SuiteBundles/Bundle 392827/com.netsuite.dunningletter/ss2/src/dunning/module/common/Request.js:28:37)\n at Array.forEach (native)\n at run (/SuiteBundles/Bundle 392827/com.netsuite.dunningletter/ss2/src/dunning/module/common/Request.js:29:44)\n at Request.handle (/SuiteBundles/Bundle 392827/com.netsuite.dunningletter/ss2/src/dunning/module/common/Request.js:33:12)\n at Object.onRequest (/SuiteBundles/Bundle 392827/com.netsuite.dunningletter/ss2/src/dunning/component/su/su_dunning_queue.js:83:12)"],"notifyOff":false},"notifyOff":false,"userFacing":true}
Thanks...