Submit a ticketCall us

Have You Auto Renewed? If not, you're missing out.
The SolarWinds Renewal Program comes with a host of benefits including the most recent product updates, 24/7 technical support, virtual instructor-led training and more. Experience all of this with the convenience of Auto Renewal, and never worry about missing any of these great benefits. Learn More.

Home > Success Center > Network Configuration Manager (NCM) > Value of the ${DateTime} variable is evaluated incorrectly for file names

Value of the ${DateTime} variable is evaluated incorrectly for file names

Updated September 28, 2017

Overview

When the ${DateTime} variable is used as part of a file name, the variable is not evaluated correctly. An error similar to the following can be found in the log file:

 

ERROR SolarWinds.Cirrus.BusinessLayer.Jobs.Notifications.BaseJobNotification - Unable to save results to file "E:\SolarWinds_Reports\VLAN_911_Check\VLAN_911_check-9-24-2017 7:56 PM.txt" due to exception: System.NotSupportedException: The given path's format is not supported.

Environment

  • NCM 7.6 and 7.7

Cause 

The ${DateTime} macro is evaluated to a value such as the following: 9-24-2017 7:56 PM. However, Windows does not support the colon character (:) in file names. 

Resolution

Replace the ${DateTime} variable with other variables that do not contain the colon character (:). For example, use the following variables:

${Date} ${HH}-${Minute}

 

The generated file name won’t contain the colon character (:). Example:

C:\SolarWindsReports\Test-${Date} ${HH}-${Minute}.txt

 

 

Last modified

Tags

Classifications

Public