Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I am using Qlik-CLI for adding triggers to my Reloadtask. Reference
https://ahaydon.github.io/Qlik-Cli-Windows/Add-QlikTrigger.html
The following command works:
Add-QlikTrigger -taskId $myTask.id -name "Task success" -OnSuccess $myTask.id
But the following command gives error:
Add-QlikTrigger -taskId $myTask.id -name "Task failed" -OnFail $myTask.id
The error is:
Add-QlikTrigger : Parameter set cannot be resolved using the specified named parameters. At line:1 char:1 + Add-QlikTrigger -taskId $myTask.id -name "Task failed ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Add-QlikTrigger], ParameterBindingException + FullyQualifiedErrorId : AmbiguousParameterSet,Add-QlikTrigger
The problem seems to be "-OnFail" parameter. Can anyone guide me in the right direction?