Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Fail to evaluate script
I'm getting this really weird error when I'm uploading my script : "Fail to evaluate script: All SuiteScript API Modules are unavailable while executing your define callback."
It seems like maybe it is a problem with my define statement but I can't spot the issue. My code is:
/** * @NApiVersion 2.0 * @NScriptType mapreducescript */ define(['N/search', 'N/record', 'N/email', 'N/runtime'], function (search, record, email, runtime) { var PARAMS = getParams(); function getParams() { var retData = {}; var currScript = runtime.getCurrentScript(); retData.inactivate = currScript.getParameter('custscript_its_data_wiz_inactivate'); retData.searchid = currScript.getParameter('custscript_its_data_wiz_ssid'); return retData; } function getInputData(context) { return search.load({ id: PARAMS.searchid }); } function map(context) { log.audit("map entry", context.key + "|" + context.value + "|" + JSON.stringify(PARAMS)); } function summarize(summary) { log.audit("summarize", "done"); } return { getInputData: getInputData, map: map, summarize: summarize } } );
0