<?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 Re: Unable to Execute Powershell Script from External Program Task in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Unable-to-Execute-Powershell-Script-from-External-Program-Task/m-p/2456430#M20667</link>
    <description>&lt;P&gt;when you call the qlik executable. you need&amp;nbsp; to make sure that there is a copy that is accessible to all nodes. and fully qualify the path.&lt;/P&gt;
&lt;P&gt;e.g. your script is here&amp;nbsp;&lt;SPAN&gt;\\qlk-ana-pue-001\QlikSenseAppData\BatchScripts\DA-Load\Run_Generate.ps1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;so try putting Qlik.exe in the share then referencing it in your ps1 like&lt;BR /&gt;&amp;amp; \\qlk-ana-pue-001\QlikSenseAppData\BatchScripts\qlik.exe&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 May 2024 05:34:27 GMT</pubDate>
    <dc:creator>Marc</dc:creator>
    <dc:date>2024-05-27T05:34:27Z</dc:date>
    <item>
      <title>Unable to Execute Powershell Script from External Program Task</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Unable-to-Execute-Powershell-Script-from-External-Program-Task/m-p/2452071#M20556</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello Community,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have a PowerShell script that uses Qlik CLI to generate the File IDs of QVDs from SaaS and store it onto a text file. This Shell script works when I run it manually on the host server but unable to execute it through Qlik Sense for Windows' External Program Task even though the result says success.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Following is the Qlik CLI Script which works -&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;qlik data-file ls --connectionId 4a6e016f-b3db-4301-a934-4cdce133cdfb --limit 500| ConvertFrom-Json | Format-Table id, name &amp;gt; \\QLK-ANA-PUE-001\QlikSenseAppData\BatchScripts\DA-Load\File-Id.txt&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Following is the External Program Task:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Path: powershell.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Parameters:&amp;nbsp;-NoProfile -ExecutionPolicy Bypass -Command "&amp;amp; {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""\\qlk-ana-pue-001\QlikSenseAppData\BatchScripts\DA-Load\Run_Generate.ps1""' -Verb RunAs}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help in debugging this issue.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Aslam&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 08:12:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Unable-to-Execute-Powershell-Script-from-External-Program-Task/m-p/2452071#M20556</guid>
      <dc:creator>aslam24196</dc:creator>
      <dc:date>2024-05-14T08:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Execute Powershell Script from External Program Task</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Unable-to-Execute-Powershell-Script-from-External-Program-Task/m-p/2452364#M20561</link>
      <description>&lt;P&gt;This setup is running fine on my end:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Path:&amp;nbsp;C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe&lt;/LI&gt;
&lt;LI&gt;Parameters:&amp;nbsp; -ExecutionPolicy Bypass \\server\path\to\script.ps1&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I will note that in your example, do be sure that the qlik-cli is in the Path for whatever server(s) is running the command.&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 17:24:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Unable-to-Execute-Powershell-Script-from-External-Program-Task/m-p/2452364#M20561</guid>
      <dc:creator>Levi_Turner</dc:creator>
      <dc:date>2024-05-14T17:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Execute Powershell Script from External Program Task</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Unable-to-Execute-Powershell-Script-from-External-Program-Task/m-p/2452605#M20570</link>
      <description>&lt;P&gt;The File is on the server 001, the scheduler hosts are 001 and 002. It looks like the task fails when its triggered through 002, even though 002 also has Qlik-CLI in its Environment Variable Path.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 09:31:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Unable-to-Execute-Powershell-Script-from-External-Program-Task/m-p/2452605#M20570</guid>
      <dc:creator>aslam24196</dc:creator>
      <dc:date>2024-05-15T09:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Execute Powershell Script from External Program Task</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Unable-to-Execute-Powershell-Script-from-External-Program-Task/m-p/2456430#M20667</link>
      <description>&lt;P&gt;when you call the qlik executable. you need&amp;nbsp; to make sure that there is a copy that is accessible to all nodes. and fully qualify the path.&lt;/P&gt;
&lt;P&gt;e.g. your script is here&amp;nbsp;&lt;SPAN&gt;\\qlk-ana-pue-001\QlikSenseAppData\BatchScripts\DA-Load\Run_Generate.ps1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;so try putting Qlik.exe in the share then referencing it in your ps1 like&lt;BR /&gt;&amp;amp; \\qlk-ana-pue-001\QlikSenseAppData\BatchScripts\qlik.exe&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 05:34:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Unable-to-Execute-Powershell-Script-from-External-Program-Task/m-p/2456430#M20667</guid>
      <dc:creator>Marc</dc:creator>
      <dc:date>2024-05-27T05:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Execute Powershell Script from External Program Task</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Unable-to-Execute-Powershell-Script-from-External-Program-Task/m-p/2456851#M20677</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;Thank you for your inputs on this.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I got it to work by using the actual path of the file on the host server instead of the network path. i.e,&amp;nbsp;&lt;SPAN&gt;-NoProfile -ExecutionPolicy Bypass "D:\QlikSenseAppData\BatchScripts\DA-Load\Run_Generate.ps1".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I just have two maintain the same set of files on two different hosts now for both the nodes to run the task with the absolute path.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 08:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Unable-to-Execute-Powershell-Script-from-External-Program-Task/m-p/2456851#M20677</guid>
      <dc:creator>aslam24196</dc:creator>
      <dc:date>2024-05-28T08:37:01Z</dc:date>
    </item>
  </channel>
</rss>

