RE: File Module with Client Script

Hi, I have a custom module I’m plugging into my client script. The custom module loads the file module. I keep getting this error saying the file module can’t be loaded. I tried loading the file module directly into the client script to rule out a problem with the custom module, but I got the same error. Is the file module incompatible with client scripts? That just seems odd.

“Fail to evaluate script: {“type”:“error.SuiteScriptModuleLoaderError”,“name”:“{stack=[Ljava.lang.Object;@793bc46d, toJSON=org.mozilla.javascript.InterpretedFunction@411a088f, name=MODULE_DOES_NOT_EXIST, toString=org.mozilla.javascript.InterpretedFunction@1b5dc7f3, id=, message=Module does not exist: N/file.js, TYPE=error.SuiteScriptModuleLoaderError}“,”message”:“”,“stack”:[]}”
mmascitto Beginner Asked on May 27, 2020 in SuiteCloud.
Add Comment
2 Answers

All the methods in N/file only support server script.

Intermediate Answered on May 27, 2020.

Right, thanks.

on May 27, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.