Hi all, i got this error message trying to upload ...
# suitescript
d
Hi all, i got this error message trying to upload script file
Copy code
There was a problem when uploading the file. Details: SuiteScript 2.x entry point scripts must implement one script type function
but i'm pretty sure there is nothing wrong with my code
Copy code
/**
 * @NApiVersion 2.x
 * @NScriptType ScheduledScript
 */
define(['N/record'],
    function (record) {
        function execute() {

        }
        return { execute: execute }
    });
please help
p
you must give an implementation for execute function
d
i added log.debug('test','test') in execute function, same error
c
try
function execute(scriptcontext)
p
Try removing the space between * and ’@
sometimes netsuite is a bit picky on the header
b
works for me
d
i don't have any answer to this, but it works now, the left one doesn't work, the right one works 😕
another issue, now i can upload the script file, but when i try to create script record, NS detects my script as suitescript 1.0 😭
b
is your editor doing something weird like using non breaking spaces instead of normal spaces?
d
@battk i think so, i think probably it's my auto formatter, but the problem is it works with other type of scripts, even scheduled script 2.1 also no issue