I'm getting this error when I upload a client scri...
# suitescript
e
I'm getting this error when I upload a client script to the file cabinet -- Fail to evaluate script: org.mozilla.javascript.EcmaError: ReferenceError: "console" is not defined. (SS_SCRIPT_FOR_METADATA#163). Has anybody encountered this in their environment?
e
Thanks. This isn't an external library script. It's just a new client script that uses console.log instead of log.debug. I can see the explanation in terms of the difference between a client script uploaded via SDF where NS accepts it with no issues and it runs fine as well in that context. But when I manually try to upload the same client script NS gives me that error message.
b
read the entire thing
it also explains why sdf is different than the ui
e
i did read the entire thing.
b
netsuite evaluates the entire script
which includes the actual script
and other modules
e
so in essence what you're saying is that there's no way i can upload a simple client script that uses console.log to create a script record because when NS evaluates the script it doesn't have any library modules that defines console?
replace the word library with console