Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
on
05-11-2023
09:49 AM
- edited on
05-11-2023
09:53 AM
by
Claudia.Landiva
While using the email/HTTP template in the Controller, you may see the following error:
ERROR Lexical error, Encountered: "#" (35), after : "&" at *unset*… or
Lexical error, Encountered: after :...
The error below can be seen when the template associated with an action is incorrect:
This lexical error generally occurs when double quotes have been used in the #set variable instead of single quotes. To repair it, change the #set variable to use single quotes.
TIP | If you are using an HTML body in an email template, use a toggle button and then paste in the payload to avoid any issue
#set( $em = ${latestEvent.eventMessage})
#set( $em = $em.replace("\", "\\"))
#set( $em = $em.replace("<b>", "*"))
#set( $em = $em.replace("</b>", "*"))
#set( $em = $em.replace("<br>", '' '))
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form