When launching the script I always receive this error.
Cannot convert value "NaN" to type "System.Int32". Error: "Value was either too large or too small for an Int32."
At C:\temp\GoliveReport\GenerateWAFReport.ps1:130 char:9
-
[int]$scorePerPillar = ($servicesPerPillar.Score | Measure-Ob ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidArgument: (:) [], RuntimeException
- FullyQualifiedErrorId : InvalidCastIConvertible