Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Backslash in email template causes error

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on August 13 2020 at 18:21 UTC

How do I escape the backslash in an email template?

And why is this not already handled by the Saviynt groovy code?



Saviynt Logs with error

2020-08-13 18:10:00,169 [quartzScheduler_Worker-2] ERROR mail.EmailHistoryService - Exception

groovy.lang.GroovyRuntimeException: Failed to parse template script (your template may contain an error or be trying to use expressions not currently supported): startup failed:

SimpleTemplateScript485.groovy: 20: unexpected char: '\' @ line 20, column 14.

<br>?????test\<b>Network ID</b>, e.g. test\<b>davenpu0</b>

^

1 error

at com.saviynt.mail.EmailHistoryService$_execute_closure10.doCall(EmailHistoryService.groovy:1496)

at com.saviynt.mail.EmailHistoryService.execute(EmailHistoryService.groovy:826)

at EmailHistoryJob.execute(EmailHistoryJob.groovy:27)

at org.quartz.core.JobRunShell.run(JobRunShell.java:199)

at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.
1 REPLY 1

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on August 13 2020 at 18:38 UTC

I figured it out.

\\ is the answer.


Anand

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.