<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Qlik-CLI Add-QlikTrigger gives error in Management &amp; Governance</title>
    <link>https://community.qlik.com/t5/Management-Governance/Qlik-CLI-Add-QlikTrigger-gives-error/m-p/1813018#M19607</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using Qlik-CLI for adding triggers to my Reloadtask. Reference&lt;/P&gt;&lt;P&gt;&lt;A href="https://ahaydon.github.io/Qlik-Cli-Windows/Add-QlikTrigger.html" target="_blank" rel="noopener"&gt;https://ahaydon.github.io/Qlik-Cli-Windows/Add-QlikTrigger.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The following command works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Add-QlikTrigger -taskId $myTask.id -name "Task success" -OnSuccess $myTask.id&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the following command gives error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Add-QlikTrigger -taskId $myTask.id -name "Task failed" -OnFail $myTask.id&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem seems to be "-OnFail" parameter. Can anyone guide me in the right direction?&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jun 2021 12:21:40 GMT</pubDate>
    <dc:creator>iamsalman</dc:creator>
    <dc:date>2021-06-07T12:21:40Z</dc:date>
    <item>
      <title>Qlik-CLI Add-QlikTrigger gives error</title>
      <link>https://community.qlik.com/t5/Management-Governance/Qlik-CLI-Add-QlikTrigger-gives-error/m-p/1813018#M19607</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using Qlik-CLI for adding triggers to my Reloadtask. Reference&lt;/P&gt;&lt;P&gt;&lt;A href="https://ahaydon.github.io/Qlik-Cli-Windows/Add-QlikTrigger.html" target="_blank" rel="noopener"&gt;https://ahaydon.github.io/Qlik-Cli-Windows/Add-QlikTrigger.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The following command works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Add-QlikTrigger -taskId $myTask.id -name "Task success" -OnSuccess $myTask.id&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the following command gives error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Add-QlikTrigger -taskId $myTask.id -name "Task failed" -OnFail $myTask.id&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem seems to be "-OnFail" parameter. Can anyone guide me in the right direction?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 12:21:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Qlik-CLI-Add-QlikTrigger-gives-error/m-p/1813018#M19607</guid>
      <dc:creator>iamsalman</dc:creator>
      <dc:date>2021-06-07T12:21:40Z</dc:date>
    </item>
  </channel>
</rss>

