<?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: EXECUTE command not working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/EXECUTE-command-not-working/m-p/1926180#M76256</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi Klaus,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Have you tired changing the file location to some where on server for ex: C:// drive folder.. Just check once.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 May 2022 10:45:50 GMT</pubDate>
    <dc:creator>vish123</dc:creator>
    <dc:date>2022-05-04T10:45:50Z</dc:date>
    <item>
      <title>EXECUTE command not working</title>
      <link>https://community.qlik.com/t5/App-Development/EXECUTE-command-not-working/m-p/1925755#M76201</link>
      <description>&lt;P&gt;Dear all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am struggling with the EXECUTE command in Qlik Sense for days now, I hope someone can help me. I have seen a lot of similar quenstions on this community but not always with a clear solution.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Problem: EXECUTE command is not working in Qlik Script.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Done so far:&lt;BR /&gt;1. Change the Settings.ini file and restarted the Engine Services&lt;BR /&gt;2. Disables Standard mode&lt;BR /&gt;3. Tried a lot script examples&lt;BR /&gt;&lt;BR /&gt;Sometimes the script is loading succesfully but nothing is happening. &lt;BR /&gt;In other tries it looks like the script is doing something but it's hanging and it wil not stop.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Final goal: I want to execute a Python script.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;What to do to get this working?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 15:27:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/EXECUTE-command-not-working/m-p/1925755#M76201</guid>
      <dc:creator>Klaus_Partyhaus</dc:creator>
      <dc:date>2022-05-03T15:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: EXECUTE command not working</title>
      <link>https://community.qlik.com/t5/App-Development/EXECUTE-command-not-working/m-p/1925844#M76217</link>
      <description>&lt;P&gt;Hi @&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(46,46,46);font-size:13px;"&gt;&lt;STRONG&gt;Klaus_Partyhaus&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this a multi-node environment? if so, does it work when it runs on specific node and fails when it goes to a different node?&lt;/P&gt;
&lt;P&gt;Do you see any error in the script log when it fails or does the script runs successfully?&lt;/P&gt;
&lt;P&gt;Have you seen any errors in Windows Event Viewer?&lt;/P&gt;
&lt;P&gt;Could it be possible to share a sample of the script you are attempting to execute?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 18:45:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/EXECUTE-command-not-working/m-p/1925844#M76217</guid>
      <dc:creator>NadiaB</dc:creator>
      <dc:date>2022-05-03T18:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: EXECUTE command not working</title>
      <link>https://community.qlik.com/t5/App-Development/EXECUTE-command-not-working/m-p/1925849#M76219</link>
      <description>&lt;P&gt;Hi Nadia,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thnx for your reply!&lt;BR /&gt;&lt;BR /&gt;No, it is a single node. Having the same problem on my local environment (test) as on our server.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Script error&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Have seen &lt;EM&gt;"The handle is invalid" &lt;/EM&gt;a few times.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example when trying&amp;nbsp;&lt;EM&gt;Execute "cmd.exe /c" "start chrome";&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Windows Event Viewer&lt;/STRONG&gt;&lt;BR /&gt;Have seen following log in &lt;SPAN&gt;Windows Event Viewer&lt;/SPAN&gt;&amp;nbsp;restarting Engine Service:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"{Copy Moved} Unable to map an image file to the address specified in the image file. Local repairs should be performed on this copy."&amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;STRONG&gt;Translated from Dutch&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;My settings.ini looks like below:&lt;/P&gt;
&lt;P&gt;[Settings 7]&lt;BR /&gt;key=value&lt;BR /&gt;OverrideScriptSecurity=1&lt;BR /&gt;StandardReload=0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Some scripts examples i tried:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Script 1 Python&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;SET vPythonPath = 'C:\\Users\\&lt;EM&gt;username&lt;/EM&gt;\\AppData\\Local\\Programs\\Python\\Python310\\python';&lt;BR /&gt;SET vPythonFile = 'C:\\Qlikshare\\QLIK DWH\\Python\test.py';&lt;/P&gt;
&lt;P&gt;Execute "$(vPythonPath)" "$(vPythonFile)";&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Script 2 Python&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;SET vPythonPath = 'C:\Users\\&lt;EM&gt;username&lt;/EM&gt;\AppData\\Local\Programs\Python\Python310\python';&lt;BR /&gt;SET vPythonFile = 'C:\Qlikshare\QLIK DWH\\Python\test.py';&lt;/P&gt;
&lt;P&gt;Execute "$(vPythonPath)" "$(vPythonFile)";&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Script 3 Python&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Execute cmd.exe /c "C:\Qlikshare\QLIK DWH\Python\test.py";&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Script 4 Excel test&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;EXECUTE C:\Program Files\Microsoft Office\root\Office16\EXCEL.EXE "C:\Users\username\Desktop\Data.xlsx";&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Script 5 Excel test&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;SET vProgramPath = 'C:\Program Files\Microsoft Office\root\Office16\EXCEL.EXE';&lt;BR /&gt;SET vProgramFile = 'C:\Users\&lt;EM&gt;username&lt;/EM&gt;\Desktop\Data.xlsx';&lt;BR /&gt;Execute "$(vProgramPath)" "$(vProgramFile)";&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Script 6 Starting Google CHrome&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Execute cmd.exe /c "start chrome";&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 06:46:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/EXECUTE-command-not-working/m-p/1925849#M76219</guid>
      <dc:creator>Klaus_Partyhaus</dc:creator>
      <dc:date>2022-05-04T06:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: EXECUTE command not working</title>
      <link>https://community.qlik.com/t5/App-Development/EXECUTE-command-not-working/m-p/1926093#M76238</link>
      <description>&lt;P&gt;Hi Klaus,&lt;/P&gt;
&lt;P&gt;Please try below.&lt;/P&gt;
&lt;P&gt;Ensure you have entered new line in while saving settings.ini file&lt;/P&gt;
&lt;P&gt;Also try restarting Qlik Services.&lt;/P&gt;
&lt;P&gt;Can you also let me know where is your file is hosted? is it on Server ? or in your local machine?&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 09:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/EXECUTE-command-not-working/m-p/1926093#M76238</guid>
      <dc:creator>vish123</dc:creator>
      <dc:date>2022-05-04T09:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: EXECUTE command not working</title>
      <link>https://community.qlik.com/t5/App-Development/EXECUTE-command-not-working/m-p/1926170#M76255</link>
      <description>&lt;P&gt;Hi Vish123,&lt;/P&gt;
&lt;P&gt;Thnx for your reply!&lt;BR /&gt;&lt;BR /&gt;I have checked again if there is a new white line in the settings.ini and I am sure it is in there.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I restarted all the Qlik servers but no succes at this moment.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;At the moment I am testen at my local machine and the file is also located on the same machine in the QlikShare folder.&amp;nbsp;&lt;BR /&gt;I also tested it on the server where the file was also located in de server QlikShare folder.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Klaus_Partyhaus_0-1651660333614.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/78614i5DC67FE597B04041/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Klaus_Partyhaus_0-1651660333614.png" alt="Klaus_Partyhaus_0-1651660333614.png" /&gt;&lt;/span&gt;Kind regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 10:33:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/EXECUTE-command-not-working/m-p/1926170#M76255</guid>
      <dc:creator>Klaus_Partyhaus</dc:creator>
      <dc:date>2022-05-04T10:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: EXECUTE command not working</title>
      <link>https://community.qlik.com/t5/App-Development/EXECUTE-command-not-working/m-p/1926180#M76256</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Klaus,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Have you tired changing the file location to some where on server for ex: C:// drive folder.. Just check once.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 10:45:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/EXECUTE-command-not-working/m-p/1926180#M76256</guid>
      <dc:creator>vish123</dc:creator>
      <dc:date>2022-05-04T10:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: EXECUTE command not working</title>
      <link>https://community.qlik.com/t5/App-Development/EXECUTE-command-not-working/m-p/1926299#M76275</link>
      <description>&lt;P&gt;Hi Vish123,&lt;/P&gt;
&lt;P&gt;That is not working as wel.&lt;BR /&gt;&lt;BR /&gt;For the record: I can't execute any program. For instance:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;Execute C:\Program Files\Microsoft Office\root\Office16\EXCEL.EXE;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Execute cmd.exe /c "start chrome";&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Kind regards,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 13:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/EXECUTE-command-not-working/m-p/1926299#M76275</guid>
      <dc:creator>Klaus_Partyhaus</dc:creator>
      <dc:date>2022-05-04T13:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: EXECUTE command not working</title>
      <link>https://community.qlik.com/t5/App-Development/EXECUTE-command-not-working/m-p/1935761#M77102</link>
      <description>&lt;P&gt;@&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(46,46,46);font-size:13px;"&gt;&lt;STRONG&gt;Klaus_Partyhaus&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is that an error &lt;I&gt;"The handle is invalid" &lt;/I&gt;from python or an error from Qlik script?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you try to execute your python script from a windows tasks and verify the outcome?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 20:41:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/EXECUTE-command-not-working/m-p/1935761#M77102</guid>
      <dc:creator>NadiaB</dc:creator>
      <dc:date>2022-05-25T20:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: EXECUTE command not working</title>
      <link>https://community.qlik.com/t5/App-Development/EXECUTE-command-not-working/m-p/1936364#M77154</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22488"&gt;@NadiaB&lt;/a&gt;&amp;nbsp;Is it from the Qlik script.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I executed the python script with CMD and that is working as expected.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 07:31:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/EXECUTE-command-not-working/m-p/1936364#M77154</guid>
      <dc:creator>Klaus_Partyhaus</dc:creator>
      <dc:date>2022-05-27T07:31:02Z</dc:date>
    </item>
  </channel>
</rss>

