Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: "String was not recognized as a valid DateTime." #41

Closed
Nifroc opened this issue Apr 30, 2019 · 7 comments
Closed

Error: "String was not recognized as a valid DateTime." #41

Nifroc opened this issue Apr 30, 2019 · 7 comments

Comments

@Nifroc
Copy link

Nifroc commented Apr 30, 2019

The Perf Mon file was saved as a csv. It is 4MB large, and was made from a Windows 2016 server.

Here is the error report:
Overall progress... Status: Creating the HTML report, PAL 2.8.1 Progress: 94%... Creating the HTML report,

An error occurred on...
$Date1 = Get-Date $([datetime]$global:oPal.aTime[0]) -format $global:sDateTimePattern
At C:\Program Files\PAL\PAL\PAL.ps1:4701 char:25 + $Date1 = Get-Date $([datetime]$global:oPal.aTime[0]) -format $glo ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cannot convert value "18:41.5,3526,0,0,0,0,0,0,0,0,0,0,0,0, , , , , ,,," to type "System.DateTime". Error: "String was not recognized as a valid DateTime."

@jeffstokes72
Copy link

jeffstokes72 commented Apr 30, 2019 via email

@Nifroc
Copy link
Author

Nifroc commented Apr 30, 2019

I'm running PAL on a Win10 laptop.

@jeffstokes72
Copy link

jeffstokes72 commented Apr 30, 2019 via email

@Nifroc
Copy link
Author

Nifroc commented Apr 30, 2019

U.S. English

@jeffstokes72
Copy link

jeffstokes72 commented Apr 30, 2019 via email

@Nifroc
Copy link
Author

Nifroc commented Apr 30, 2019

I haven't changed the date format in Windows. From the error message, I can tell that it can't define the different columns apart. "Cannot convert value: "18:41.5,3526,0, . . . " 18:41.5 is the time, 3526 is the second column, and so forth.

@Nifroc
Copy link
Author

Nifroc commented Apr 30, 2019

Issue found: The data collector didn't format the date/time correct. 18:41.5 only shows the time of 12:18:41 AM, without the date. On my functioning one, the date and time were recorded. I'll now see why Per Mon didn't record the date field.

@Nifroc Nifroc closed this as completed Apr 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants