Could somebody check if assigning value to Script....
# suitescript
k
Could somebody check if assigning value to Script.percentComplete is broken in 2.1 scheduled scripts? I've got SSS_OPERATION_UNAVAILABLE. You'll definitely help to determine that this is a common issue and it happens everywhere and not only in my account. Thanks!
p
I can check if you have a little script I can just paste into one of my sandboxes
k
/**
* _@NApiVersion_ 2.1
* _@NScriptType_ scheduledscript
*/
define(['N/runtime'], _function_ (_runtime_) {
return {
execute: () _=>_ {
_let_ script = _runtime_.getCurrentScript();
script.percentComplete = 50;
},
};
});
@PNJ thank you
p
I get the same error
k
thanks. I appreciate your help. i'm submitting a case with NS.
s
@Ashwin K. Does this look familiar/
a
Will have the team check this out, thanks for the tag!
k
@Ashwin K. Thank you for quick fix!
👍 1