Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

525
Views
Error when creating Netsuite script: module does not exist

I've created a js file, filled with the logic for CS script and uploaded it to the file cabinet. Afterwards I want to create a script record and select the file, but get the following error when trying to save the script object:

Error Fail to evaluate script: {"type":"error.SuiteScriptModuleLoaderError","name":"{stack=[Ljava.lang.Object;@62fae4dc, toJSON=org.mozilla.javascript.InterpretedFunction@2d7dfa04, name=MODULE_DOES_NOT_EXIST, toString=org.mozilla.javascript.InterpretedFunction@1a1478db, id=, message=Module does not exist: N/render.js, TYPE=error.SuiteScriptModuleLoaderError}","message":"","stack":[]}

My CS file:

define(['N/render', 'N/currentRecord'],
/**
* @param {render} render
* @param {currentRecord} currentRecord
*/
function(render, currentRecord) {

    function download_file(scriptContext)
    {
        var renderer = render.create();
        //other logic
    }

    return {
        download_file : download_file,
    };
});

Did anyone experience this before and know what causes this?

about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

After some research, it seems all function members of the module are only accessible in server scripts: https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_4412042824.html

I assume the problem is that the module is not available for CS scripts. Could anyone validate this assumption?

about 4 years ago · Santiago Trujillo Report

0

Please check whether you saved the script file with .js extension

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!