Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
gandalfgray
Specialist II
Specialist II

Not possible to enable disabled rule using Qlik-Cli Update-QlikRule

Hi!

I thought it would be convenient to enable a disabled rule using the Qlik-Cli function Update-QlikRule,

but it doesn't seem possible.

"-disabled" is a switch, and if its provided the rule is set to "Disabled", if it's left out nothing happens with the "Disabled" status,

trying with:

-disabled $false

gives a syntax error (as expected with the current function implementation)

Please correct me if I'm wrong

1 Solution

Accepted Solutions
Marc
Employee
Employee

try 

-disabled:$false

note it is a colon ":" not a space between the flag and value

 

View solution in original post

3 Replies
Marc
Employee
Employee

try 

-disabled:$false

note it is a colon ":" not a space between the flag and value

 

gandalfgray
Specialist II
Specialist II
Author

Thanks! So easy when you know...

Marc
Employee
Employee

😁to be fair this was discussed a couple of years ago between myself & @Adam_Haydon...

The issue was around inadvertently enabling a rule that was being updated

https://github.com/ahaydon/Qlik-Cli-Windows/pull/43#issuecomment-372247436