Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

528
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

0

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

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda