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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
iamsalman
Contributor II
Contributor II

Qlik-CLI Add-QlikTrigger gives error

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?

0 Replies