We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

email script does not exist error

Jay Rosenberg
Mega Contributor

I've created a Notification Email script for an existing application (in System Notification) for my application.  Inside my email notification I'm using ${mail_script:my_script_name} and I get the error Email script render error: email script [my_script_name] does not exist.

Since the application is not Global I also tried using the scope x_my_app as follows:

${mail_script:x_my_app.my_script_name} but I get the same error message with the qualified script name [x_my_app.my_script_name]

I've run a email script that is scoped Global without any prefix and that works without failing in the same email notification - it is just the reference to my created script it can't seem to find.

Any ideas on why it can't find the script?

Thanks

1 ACCEPTED SOLUTION

Hi Jay,

Use following link and you would know the detail steps.

https://community.servicenow.com/community?id=community_question&sys_id=3ed88f61db5cdbc01dcaf3231f961928

Regards

Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

7 REPLIES 7

I want to highlight that Ankur link to community are redirect to incorrect article. @Jay Rosenberg solution is correct.
1. Select View Source code

DuangrutA_0-1783410102209.png

2. Inspect your script.
3. Remove <span> tag inside script

I hope this help future reader.
Thanks

Jay Rosenberg
Mega Contributor

Where can I mark this as solved?

Hi Jay,

Use following link and you would know the detail steps.

https://community.servicenow.com/community?id=community_question&sys_id=3ed88f61db5cdbc01dcaf3231f961928

Regards

Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader