KelvinTegelaar / PowerShellWarrantyReports

a repo dedicated to automatic warranty reporting and retrieval from different systems such as IT-Glue, Connectwise, Autotask, and N-central.
GNU Affero General Public License v3.0
173 stars 71 forks source link

Cannot convert null to type "System.DateTime #53

Closed Dmartin1005 closed 2 years ago

Dmartin1005 commented 2 years ago

Importing from CSV. Getting Cannot convert null to type "System.DateTime

did more testing looks like random serial numbers return this result but don’t show on the report. Running same sn in hp support assistant or hp website show results

slsconsult commented 2 years ago

Same issue here, fe when I run the line https://warrantyapiproxy.azurewebsites.net/api/HP?serial=5CD201343S I got

{ "Serial": "5CD201343S", "WarProduct": "", "StartDate": null, "EndDate": null }

KelvinTegelaar commented 2 years ago

Some devices that require a PN cannot be looked up.