in Console it works well, in script it throws the ...
# suitescript
d
in Console it works well, in script it throws the error