Skip to content

Cannot convert argument "Level", with value: "", for "SetResult" to type "ORCAConfigLevel" #333

@TheWatcherFromTheVoid

Description

@TheWatcherFromTheVoid

Error:
Cannot convert argument "Level", with value: "", for "SetResult" to type "ORCAConfigLevel": "Cannot convert null to type "ORCAConfigLevel" due to enumeration values that are not valid. Specify one of the following enumeration values and try again. The possible enumeration values are "None,Standard,Strict,TooStrict,All".

Locations:

  • MethodException: C:. . . \Documents\PowerShell\Modules\ORCA\2.8.1\Checks\check-ORCA223.ps1:99
  • MethodException: C:. . . \Documents\PowerShell\Modules\ORCA\2.8.1\Checks\check-ORCA222.ps1:155

Code:

  • check-ORCA223.ps1:99
<snipped>
            If($TargetedUserProtectionAction -eq "Delete" -or $TargetedUserProtectionAction -eq "Redirect")
            {
99: ->      $ConfigObject.SetResult([ORCAConfigLevel]::Informational,"Fail")
                $ConfigObject.InfoText = "The $($Policy.TargetedUserProtectionAction) option may impact the users ability to release emails and may impact user experience."
            }
<snipped>

Code:

  • check-ORCA222.ps1:155
<snipped>
          If($TargetedDomainProtectionAction -eq "Delete" -or $TargetedDomainProtectionAction -eq "Redirect")
            {
                # For either Delete or Quarantine we should raise an informational
155: ->    $ConfigObject.SetResult([ORCAConfigLevel]::Informational,"Fail")
                $ConfigObject.InfoText = "The $($TargetedDomainProtectionAction) option may impact the users ability to release emails and may impact user experience."
            }
<snipped>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions