Try to Create Transfer Fund (Bank Transfer) by Map/Reduce

I try to create a bank transfer transaction by Map/Reduce. But I found an error on Line”
save record.

Try to Create Transfer Fund (Bank Transfer) by Map/Reducethis my Code

Error is .
{“type”:”error.SuiteScriptError”,”name”:”UNEXPECTED_ERROR”,”message”:”ReferenceError: \”document\” is not defined. (NLRecordScripting.scriptInit$lib#488)”,”id”:”ba9ddf36-96c5-44ba-85ea-ab25d7a94229-2d323032352e30392e3134″,”stack”:[“Error\n at RecordInvoker.save (suitescript/resources/javascript/record/serverRecordService.js:371:13)\n at NetSuiteObject.thenableFunction() (suitescript/resources/javascript/record/proxy.js:115:24)\n at Object.reduce (/SuiteScripts/CustomScript/Chaw – Bank Transfer/Chaw – Bank Transfer.js:141:41)”],”cause”:{“type”:”internal error”,”code”:”UNEXPECTED_ERROR”,”details”:”ReferenceError: \”document\” is not defined. (NLRecordScripting.scriptInit$lib#488)”,”userEvent”:null,”stackTrace”:[“Error\n at RecordInvoker.save (suitescript/resources/javascript/record/serverRecordService.js:371:13)\n at NetSuiteObject.thenableFunction() (suitescript/resources/javascript/record/proxy.js:115:24)\n at Object.reduce (/SuiteScripts/CustomScript/Chaw – Bank Transfer/Chaw – Bank Transfer.js:141:41)”],”notifyOff”:false},”notifyOff”:false,”userFacing”:true}

for the fist time in heve an isDynamic : true on record.create that make this ERROR

{“type”:”error.SuiteScriptError”,”name”:”INVALID_OPERATION”,”message”:”That operation is not supported for this record type: transfer”,”id”:””,”stack”:[“Error\n at suitescript/resources/javascript/record/recordImpl.js:40:12\n at Function.createRecord_raw (suitescript/resources/javascript/record/recordImpl.js:38:24)\n at suitescript/resources/javascript/record/recordImpl.js:26:29\n at Object.createRecord (suitescript/resources/javascript/record/recordImpl.js:24:24)\n at Object.reduce (/SuiteScripts/CustomScript/Chaw – Bank Transfer/Chaw – Bank Transfer.js:132:54)”],”cause”:{“type”:”internal error”,”code”:”INVALID_OPERATION”,”details”:”That operation is not supported for this record type: transfer”,”userEvent”:null,”stackTrace”:[“Error\n at suitescript/resources/javascript/record/recordImpl.js:40:12\n at Function.createRecord_raw (suitescript/resources/javascript/record/recordImpl.js:38:24)\n at suitescript/resources/javascript/record/recordImpl.js:26:29\n at Object.createRecord (suitescript/resources/javascript/record/recordImpl.js:24:24)\n at Object.reduce (/SuiteScripts/CustomScript/Chaw – Bank Transfer/Chaw – Bank Transfer.js:132:54)”],”notifyOff”:false},”notifyOff”:false,”userFacing”:true}

i use script 2.1,

Add Comment
1 Answer(s)

As far as I can see, “transfer” is not supported as a record.Type. That may be your problem here.

Did you confirm that it is a supported record for scripts? You can check the Records Catalog or the documentation for record.Type.

Beginner Answered on September 15, 2025.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   SuiteMigration   Become a Sponsor