Error when navigating by date: String was not recognized as a valid DateTime
search cancel

Error when navigating by date: String was not recognized as a valid DateTime

book

Article ID: 23172

calendar_today

Updated On:

Products

CA Application Delivery Analysis MTP (NetQoS / ADA)

Issue/Introduction

If a customer has set the regional settings incorrectly (i.e. any non-US standard setting), NPC will error out when navigating through various time periods with the error:

"String was not recognized as a valid DateTime"

 



Environment

Release: PCSTAS99000-6.1-NetQoS-Performance Center-Stand-Alone-Server
Component:

Cause

This error can be caused by various invalid dates in the data due to the regional settings being incorrect.

Note: This will only resolve the date format in new data. Old data will not be updated, so you will still see errors when looking
at older data from before the changes.

Resolution

 Set the regional settings to US where it is M/D/Y instead of D/M/Y.

  • Reboot the server.
  • Back up the registry.
  • Search the registry for all keys where the name is sShortDate.
    • Make sure its value is set to M/d/yyyy.
  • Search the registry for all keys where the name is sLongDate.
    • Make sure its value is set to dddd, MMMM dd, yyyy.
  • Reboot the server.