Network Management

The specified string is not in the form required for a subject

Email alerts are failing when ${N=Alerting;M=AlertMessage} or other variables are used in the Subject line and carriage returns are within Alert Message box. Subjects are failing as carriage returns are not permitted in subject line of emails.

First published date

10/17/2018 7:37 AM

Last published date

6/19/2020 6:43 PM

Overview

Email actions are working when simulated but when the alert is actually fired, it fails with the following response:

The specified string is not in the form required for a subject.

Product section

Network Performance Monitor

Cause

The alert variable is being resolved to a string containing a carriage return. Carriage returns cannot exist within the Subject, this is causing the send it to fail.

This behavior has been observed with ${N=Alerting;M=AlertMessage} and ${N=SwisEntity;M=CategoriesWithProblems}, but it may exist with other variables.

Resolution

Remove the variable(s) from the subject line that include the carriage return.