Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Message publication fails if I use an external unsubscription link with dynamic query parameters


Level 2

Hello all,
Despite AJO offers the possibility to use External Opt-Out/Unsubscription link, if I add functions (or even just profile attributes) to the URL, I'm allowed to save the message (html validation is ok) but publication fails as shown below.


https://mywebsite/{%= profile.locale %}/unsubscribe_newsletter?id={%= profile.personID %}&service=NL


Did you face the same issue?
Do you know how to avoid this error and publish correctly the message? Maybe the escape of some chars might help?

Thank you,

1 Reply


Community Advisor

Hello @salvatore_dange 


What I have seen is you can't the message when you are using variables that are not available in the profile or context of the event.

You will have to make sure the variable code is from the profile or the event context. Also, there should be any space between the variable name and the closing brackets.