Why is my script deployment failing?
If your script deployment is failing, please test the script locally.
You may also visit the Community, which provides a variety of sample scripts for comparison.
Community script samples link:
If your script works locally, but not when remotely deployed, please contact our support department for further assistance.