<?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: QVS Reload failed while trying to compress a file in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/QVS-Reload-failed-while-trying-to-compress-a-file/m-p/1995389#M82385</link>
    <description>&lt;P&gt;There are a lot of possibilities, like the qmc user hasn't the proper access rights to the folder/file and/or the tool isn't installed and/or configured/licenced on the server and/or there are any messages (any updates available, are your sure ... each kind of popup querying an user-interaction will stop the task and it waits until any timeout break it) and/or the user isn't logged in (not all tools are running as a service or are able to access needed libraries) and/or the settings.ini from the distribution service didn't exists or have the right entries ... probably various more ...&lt;/P&gt;
&lt;P&gt;In some cases it's helpful not to call the batch-file or the statement directly per EXECUTE else to call a windows-task with the right user with/without a needed logged user and with the highest priorities which triggers the job.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Fri, 21 Oct 2022 08:15:25 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2022-10-21T08:15:25Z</dc:date>
    <item>
      <title>QVS Reload failed while trying to compress a file</title>
      <link>https://community.qlik.com/t5/App-Development/QVS-Reload-failed-while-trying-to-compress-a-file/m-p/1995138#M82369</link>
      <description>&lt;DIV class="topic-subject-wrapper"&gt;
&lt;DIV class="lia-message-subject lia-component-message-view-widget-subject"&gt;
&lt;DIV class="MessageSubject"&gt;
&lt;DIV class="lia-message-subject"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="MessageInResponseTo lia-component-message-view-widget-in-response-to lia-component-in-response-to"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="bodyDisplay" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;HI all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am struggling due to something pretty weird whilst reloading a document using QV Server.&lt;/P&gt;
&lt;P&gt;I have a document that store a txt file in a certain path while reloading the script.&lt;/P&gt;
&lt;P&gt;As the file size it´s quite big I therefore call winrar (or any other zip programm or even powershell compress) like this.&lt;/P&gt;
&lt;P&gt;execute "C:\Program Files\WinRAR\WinRAR.exe" a -ep file.zip file.txt;&lt;/P&gt;
&lt;P&gt;If I execute the script with the Desktop app it works perfectly (all security parameters are correct).&lt;/P&gt;
&lt;P&gt;But If I launch the reload using the QlikView Server (via QMC), it simply fails (.&lt;/P&gt;
&lt;P&gt;Events Log file does not show any relevant.&lt;/P&gt;
&lt;P&gt;Session stop reason: Socket closed by client 445c0d17-0209-475c-ad4b-4bc6b6b0ac0b&lt;/P&gt;
&lt;P&gt;Any idea?&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 20 Oct 2022 15:34:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVS-Reload-failed-while-trying-to-compress-a-file/m-p/1995138#M82369</guid>
      <dc:creator>Fernando_Sanchez</dc:creator>
      <dc:date>2022-10-20T15:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: QVS Reload failed while trying to compress a file</title>
      <link>https://community.qlik.com/t5/App-Development/QVS-Reload-failed-while-trying-to-compress-a-file/m-p/1995389#M82385</link>
      <description>&lt;P&gt;There are a lot of possibilities, like the qmc user hasn't the proper access rights to the folder/file and/or the tool isn't installed and/or configured/licenced on the server and/or there are any messages (any updates available, are your sure ... each kind of popup querying an user-interaction will stop the task and it waits until any timeout break it) and/or the user isn't logged in (not all tools are running as a service or are able to access needed libraries) and/or the settings.ini from the distribution service didn't exists or have the right entries ... probably various more ...&lt;/P&gt;
&lt;P&gt;In some cases it's helpful not to call the batch-file or the statement directly per EXECUTE else to call a windows-task with the right user with/without a needed logged user and with the highest priorities which triggers the job.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 08:15:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVS-Reload-failed-while-trying-to-compress-a-file/m-p/1995389#M82385</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-10-21T08:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: QVS Reload failed while trying to compress a file</title>
      <link>https://community.qlik.com/t5/App-Development/QVS-Reload-failed-while-trying-to-compress-a-file/m-p/1995407#M82386</link>
      <description>&lt;P&gt;Thanks a lot for the answer Marcus.&lt;/P&gt;
&lt;P&gt;I am launching the script via Desktop within the same server and same user and no problems.&lt;/P&gt;
&lt;P&gt;It just seems the QVS Task Reload cannot handle any line calling cmd.exe..., not just the compress call.&lt;/P&gt;
&lt;P&gt;I have checked permissions and all that stuff and nothing seems to be wrong.&lt;/P&gt;
&lt;P&gt;Pretty weird.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 08:33:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVS-Reload-failed-while-trying-to-compress-a-file/m-p/1995407#M82386</guid>
      <dc:creator>Fernando_Sanchez</dc:creator>
      <dc:date>2022-10-21T08:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: QVS Reload failed while trying to compress a file</title>
      <link>https://community.qlik.com/t5/App-Development/QVS-Reload-failed-while-trying-to-compress-a-file/m-p/1995439#M82392</link>
      <description>&lt;P&gt;Solved! It had to do the almighty settings.ini.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Navigate to C:\Windows\System32\config\systemprofile\AppData\Roaming\QlikTech\QlikViewBatch and open the Settings.ini file. Locate the line AllowExecuteCommand and set the value to 1 as shown below: AllowExecuteCommand=1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 09:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVS-Reload-failed-while-trying-to-compress-a-file/m-p/1995439#M82392</guid>
      <dc:creator>Fernando_Sanchez</dc:creator>
      <dc:date>2022-10-21T09:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: QVS Reload failed while trying to compress a file</title>
      <link>https://community.qlik.com/t5/App-Development/QVS-Reload-failed-while-trying-to-compress-a-file/m-p/1995442#M82394</link>
      <description>&lt;P&gt;I'm not sure if I ever used direct statements within the EXECUTE in productive qmc-tasks (I had some testing but if they were running stable ? - more important for me was to centralize the multiple batch/tasks instead of using inline-statements) but calling batch-files or windows-tasks are working well, like:&lt;/P&gt;
&lt;P&gt;EXECUTE cmd /C "D:\...\DataSynchronisationPlandaten.bat";&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EXECUTE schtasks.exe /Run /TN "QlikView\ExportAndMail";&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 09:13:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVS-Reload-failed-while-trying-to-compress-a-file/m-p/1995442#M82394</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-10-21T09:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: QVS Reload failed while trying to compress a file</title>
      <link>https://community.qlik.com/t5/App-Development/QVS-Reload-failed-while-trying-to-compress-a-file/m-p/1995692#M82431</link>
      <description>&lt;P&gt;That was great Magnus.&lt;/P&gt;
&lt;P&gt;After reading quite a lot of topics regarding QMC possibilities to handle macros, subs and functions, using windows task scheduler it´s the "best way".&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 18:18:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVS-Reload-failed-while-trying-to-compress-a-file/m-p/1995692#M82431</guid>
      <dc:creator>Fernando_Sanchez</dc:creator>
      <dc:date>2022-10-21T18:18:33Z</dc:date>
    </item>
  </channel>
</rss>

