logo

NJP

ERROR: System address filter excluded email addresses (Illegal semicolon, not in group) syslog_email

Import · Mar 12, 2021 · article

ERROR:

Are you getting error "System address filter excluded email addresses (Illegal semicolon, not in group):"?

SOLUTION:

Take off ";" semicolon character TO "," comma

Sometimes it has some strange characters that you can debug using some convert to ascii ike OnlineStringTools.

In my alzy work i replace using while instead the update all

var gr = new GlideRecord("u_my_own_table");
//gr.addQuery("u_email", "CONTAINS", "\n"); //Enter
//gr.addQuery("u_email", "CONTAINS", " "); //Space
gr.query();
while (gr.next()) {
var tmp = gr.u_email;
var tmp2 = gr.u_email.replaceAll(" ", "").replaceAll(";",",").replaceAll("\n", "");

gs.log(gr.sys_id + " + u_email + "# " + tmp2);

gr.u_email.setValue(tmp2);
gr.update();

}

How my team was working with sending mail coding, in this case that we get this issue was doing in a button using a script include, however, how to reproduce:

Step 1 : Register Event

Event_Registry

Step 2 : Fire event

Script Action

Step 3 : Create email notification

Email notifications

----------------- Event Creation Process (Now Learning) -----------------

1. Register the Event

2. Create a queue (optional)

3. Create a script to generate the Event

4. Create a script to respond to the Event

image

summary

upgrades

Servicenow versions

Now Learning: Scripting an event

View original source

https://www.servicenow.com/community/developer-articles/error-system-address-filter-excluded-email-addresses-illegal/ta-p/2307670