In the end the problem has been solved with a <RE key="offending_hyperlink"></RE> tag.
Where "offending_hyperlink" is a key placed in CustomLabels.properties, containing the whole <a href=".....> .... </a> tag.
Original Message:
Sent: Fri September 12, 2025 03:33 AM
From: Andrea Gatto
Subject: ISIM email notifications errors in trace.log
Thank you for linking the documentation.
Indeed, the problematic part in the url seems to be near to '...&sys_id...' (as the exception is reporting 'sys_id').
According to docs, the ampersand should be correctly escaped. At least, the operation editor allows me to save the mail template (then I get the exception during runtime).
Anyway, the docs are giving me some suggestions... I'll do some experiments, then I'll let you know the outcome.
Ciao!
------------------------------
Andrea Gatto
Original Message:
Sent: Fri September 12, 2025 01:24 AM
From: Franz Wolfhagen
Subject: ISIM email notifications errors in trace.log
You cannot just add a URL like that as it contains characters that will break the XML of the template (and that is the error you get).
You may want to check this part of the documentation : https://www.ibm.com/docs/en/sig-and-i/10.0.1?topic=reference-dynamic-tags-in-mail-templates but you cn also try to substitute the violating characters in the URL to get it working...
HTH
------------------------------
Franz Wolfhagen
WW IAM Solution Architect - Certified Consulting IT Specialist
IBM Expert Labs
Original Message:
Sent: Tue September 09, 2025 11:40 AM
From: Andrea Gatto
Subject: ISIM email notifications errors in trace.log
In particular, this is the offending portion in XHTML message body:
<a href="https://xxx.service-now.com/esp?id=esp_sc_cat_item&sys_id=11e5806e8759ad106d7665370cbb359b&sysparm_category=24c63f1a8719ad106d7665370cbb35a8"> Portale dei Servizi > Servizi IT > Gestione Utenze > Account Consulente Esterno </a>
------------------------------
Andrea Gatto
Original Message:
Sent: Tue September 09, 2025 08:51 AM
From: Andrea Gatto
Subject: ISIM email notifications errors in trace.log
Hi everyone!
I have some notification emails sent by ISIM that are causing an exception in trace.log.
The exception I see is:
org.xml.sax.SAXParseException: The reference to entity "sys_id" must end with the ';' delimiter.
Wich is caused by an url contained in an href contained in the notification text:
https://xxx.service-now.com/esp?id=esp_sc_cat_item&sys_id=11e5806e8759ad106d7665370cbb359b
Is there a safe way to write the href tag without causing the issue?
Thank you
Ciao
------------------------------
Andrea Gatto
------------------------------