Skip to content

Non-terminating error in "Getting Device compliance policies → Processing" #792

@Rincey

Description

@Rincey

I get the following error when the Assessment tool gets to the "Getting Device compliance policies → Processing" stage. It is non-terminating.

MethodException: C:\Users<username>\Documents\PowerShell\Modules\ZeroTrustAssessment\2.1.0\private\tenantinfo\devices\Add-ZTDeviceCompliancePolicies.ps1:64
Line |
64 | $gracePeriod = [TimeSpan]::FromHours($action.gracePeriodH …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot convert argument "value", with value: "System.Object[]", for "FromHours" to type "System.Double": "Cannot
| convert the "System.Object[]" value of type "System.Object[]" to type "System.Double"."

I am running ZTA 2.1.0 on Powershell 7.4.5

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