Skip to content

Cannot convert value "NaN" to type "System.Int32". #32

@heblasco

Description

@heblasco

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions