Anyone got an idea why this would cause a SSS_MISS...
# suitescript
j
Anyone got an idea why this would cause a SSS_MISSING_REQD_ARGUMENT error? I've been all over the SA documentation for N/error and I can't figure out what I did wrong.
s
What argument does it say it's missing?
j
@Siena Type?
Copy code
{
  "type": "error.SuiteScriptError",
  "name": "SSS_MISSING_REQD_ARGUMENT",
  "message": "create: Missing a required argument: type",
  "stack": [
    "createError(N/error)",
    "beforeSubmit(/SuiteScripts/Set_Prj_Task_ExtID.js:51)",
    "createError(N/error)"
  ],
  "cause": {
    "name": "SSS_MISSING_REQD_ARGUMENT",
    "message": "create: Missing a required argument: type"
  },
  "id": "",
  "notifyOff": false,
  "userFacing": true
}
s
That's definitely strange considering that is not an argument for error.create. Can you double check the top of your file to make sure that the variable named
error
really corresponds to the module
N/error
and not some other module with a
create
function that requires
options.type
such as
N/query
or
N/record
or
N/search
? I know that seems dumb but that's the first thing that came to mind. Check that your define statement's array of modules corresponds correctly to the variable names.