Hi, I've just created a new very simple script. It...
# suitescript
b
Hi, I've just created a new very simple script. It was only about 10 lines but it's been getting longer as I've been adding dialog boxes and log records as I try and find out what's wrong. This script works fine on the Sandbox account, but doesn't trigger at all on the production account. I have other scripts on the production account that are working well. I'm guessing it's something simple.... what have I missed?
1
e
• That it's deployed • The deployment is set to released • The audience is correct (All roles, for example)
b
Yes to all 3. Audience is set to All Roles. I've checked and checked and setup appears identical to how I set it up on the sandbox. It just doesn't trigger.
b
follow all the steps to deploying a script
if you are absolutely sure your deployment is correct, then the scripted records for client scripts is next
b
Thanks, everything looks correct.. only think i noticed on script deployment is that I don't see any options for "execute as a role", however I am using administrator role for all my testing etc.
s
Is it a client script? Are there more than 10 scripts in production? There is a limit to the number of client scripts that can execute
b
Yes, it is a client script. There are 21 scripts in total in production, only 5 of which (including this one) are client scripts. This is the same on the sandbox as I only did a refresh last week.
e
On the page that the client script is running on, right click and select Inspect and then go to the Console and check to see if there are client-side errors. If there are, chances are that your script is being prevented from running by those errors.
b
Thanks all. I knoew it would be something simple. When I uploaded the script to the environment in the production the file in the filecabinet dropped the js extention - in the sb it didn't! Even if you downloaded the file from prod the js extention was there so it took a bit to find!
l
If it helps for next time, this environment comparison tool is designed to quickly figure out what the difference is in exactly these scenarios. (It's not free and I work for the company). Here's a video https://www.strongpoint.io/use-cases-environment-comparison-in-netsuite