`/** *@NApiVersion 2.0 *@NScriptType ScheduledSc...
# suitescript
s
Copy code
/**
 *@NApiVersion 2.0
 *@NScriptType ScheduledScript
 */
 define(['./lib_packing_slip_data_generator.js',
'./lib_consolidated_packing_slips.js',
'N/record'],
 function(PackingSlipDataGenerator,CPS,
record) {
     function execute(context) {
Copy code
}
     return {
         execute: execute
     };
 });
I'm trying to upload this schedule script and create a script record . But I'm getting this error : Notice Fail to evaluate script: {"type":"error.SuiteScriptModuleLoaderError","name":"UNEXPECTED_ERROR","message":"missing ) after formal parameters (/SuiteScripts/lib_packing_slip_data_generator.js#19)","stack":[]} What went wrong . I'm so confused ! Ps : there are files called
lib_packing_slip_data_generator.js lib_consolidated_packing_slips.js
in the Suitescript folder. Please advice !
Code image:
s
try SuiteScripts/filename'
s
Still the same error
s
can you send me that code as well
s
Found out , the library file (I'm calling as module) has let keywords. Which is not valid in suitescript 2.0 as mentioned in my above script. I changed the nApiVerion to 2.1 it's now uploaded..!