Skip to content

ORCAConfigLevel - Cannot convert null to type "ORCAConfigLevel" #327

@LKo-exp4

Description

@LKo-exp4

I can confirm the bug from: #300

We are also running the current version 2.8.1

Important hint: It is very specific to some tenants only. I can only reproduce the issue only with a single tenant, in most other tenants it is working totally fine. But i would really appreciate if you could have a look.

I took a look into the code of the module, but i didnt do a deep dive yet.
It somehow seems that he is trying to set the ORCAConfigLevel to Informational, but there is not definition for informational

enum ORCAConfigLevel
{
None = 0
Standard = 5
Strict = 10
TooStrict = 15
All = 100
}

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"."
At C:\Program Files\WindowsPowerShell\Modules\ORCA\2.8.1\Checks\check-ORCA231.ps1:122 char:25

  • ... $ConfigObject.SetResult([ORCAConfigLevel]::Informational, ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodException
    • FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument

Image

Thank you very much

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