Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LKo-exp4 opened this issue Mar 20, 2025 · 0 comments
Open

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

LKo-exp4 opened this issue Mar 20, 2025 · 0 comments

Comments

@LKo-exp4
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant