email script does not exist error

Jay Rosenberg
Kilo 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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Jay,

Can you try to create a new mail script and try to give that name in that and check once.

Regards

Ankur

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

I was able to resolve the issue - it turns out there was an embedded <span> tag - when I removed it - it fixed the issue and I was able to reference the script.

 

Thanks

Nice to hear that. Can you mark answer as correct and mark helpful. 

Regards

Ankur

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

Hi Jay,

Can you mark answer as correct if this is solved?

Thanks in advance

Regards

Ankur

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