Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

531
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

0

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

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda