<?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: Qlikview Serer reload fail for qvw executing bat in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qlikview-Serer-reload-fail-for-qvw-executing-bat/m-p/2081469#M88693</link>
    <description>&lt;P&gt;Just to clear it - the batch is starting and performing the included actions but not finishing properly and therefore the qmc-task is waiting for any (error/success) response or the batch is starting but not executing anything or the batch didn't start?&lt;/P&gt;
&lt;P&gt;At first I suggest to check the information + links from above again and ensuring that the user + document properties are properly set. This might be done by opening the qvw with the EXECUTE directly with the qmc-user in the desktop client and performing the reload.&lt;/P&gt;
&lt;P&gt;If the above worked but not triggered per qmc-task check again that AllowExecuteCommand is set properly and within the right settings.ini - this means not the "normal" settings.ini within the QlikView server folder else the one within System32.&lt;/P&gt;
&lt;P&gt;Further helpful would be to log the batch-results which could be reached by adding a &amp;gt;&amp;gt; Path/Filename.log to execute-statement and if the batch itself is starting some similar logic within the batch-routine and/or within the called tools. Finding the breaking point is quite near to finding the cause.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2023 07:04:16 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2023-06-08T07:04:16Z</dc:date>
    <item>
      <title>Qlikview Serer reload fail for qvw executing bat</title>
      <link>https://community.qlik.com/t5/App-Development/Qlikview-Serer-reload-fail-for-qvw-executing-bat/m-p/2081174#M88672</link>
      <description>&lt;P&gt;I have a bat file like this to trigger an app reload.&lt;/P&gt;
&lt;P&gt;"C:\Program Files\QlikView\qv.exe" /R "C:\QV_FILE\test_qv_01.qvw"&lt;BR /&gt;Exit&lt;/P&gt;
&lt;P&gt;I add code in a new QVW file call "trigger _bat.qvw" to execute the above bat file.&lt;/P&gt;
&lt;P&gt;Script like this:&lt;/P&gt;
&lt;P&gt;EXECUTE cmd.exe /C "C:\QV_FILE\qv_reload_app01.bat";&lt;/P&gt;
&lt;P&gt;exit script;&lt;/P&gt;
&lt;P&gt;When I reload the&amp;nbsp;"trigger _bat.qvw" with QV desktop, the bat is running correctly and the "C:\QV_FILE\test_qv_01.qvw" is reloaded.&lt;/P&gt;
&lt;P&gt;However, when I place it in server and setup reload task to reload&amp;nbsp;"trigger _bat.qvw" , it do not pop out any error, but it keeps reloading and reloading.&lt;/P&gt;
&lt;P&gt;Under task log:&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:30 PM) Information: Opening "C:\QV_FILE\Trigger bat for app reload 01.qvw"&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:30 PM) Information: Allocating new QlikView Engine. Current usage count=0 of 4 (of type non-reader).&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:30 PM) Information: Max retries:5&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:30 PM) Information: Attempt:01&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:32 PM) Information: Opened the QlikView Engine successfully. ProcessID=16720&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:32 PM) Information: Allocated QlikView Engine successfully. Current usage count=1 of 4 (of type non-reader). Ticket number=3.&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:32 PM) Information: Loading document "C:\QV_FILE\Trigger bat for app reload 01.qvw" (0.15 Mb)&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:32 PM) Information: Physical FileSize=0.15 Mb. Memory Allocation Delta for this file=2.84 Mb. Available Physical Memory Before Open=5608.47 Mb. Available Physical Memory After Open=5603.32 Mb. Total Physical Memory=7999.55 Mb.&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:32 PM) Information: Attempted to load the document without data.&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:32 PM) Information: The document was loaded successfully.&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:32 PM) Information: Document was opened successfully&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:32 PM) Information: Starting reload&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:32 PM) Information: The Source Document is being reloaded. DocumentPath=C:\QV_FILE\Trigger bat for app reload 01.qvw&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:33 PM) Information: Reloading.&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:34 PM) Information: Reloading..&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:35 PM) Information: Reloading...&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:36 PM) Information: Reloading....&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:37 PM) Information: Reloading.....&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:38 PM) Information: Reloading......&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:39 PM) Information: Reloading.......&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:40 PM) Information: Reloading........&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:41 PM) Information: Reloading.........&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:42 PM) Information: Reloading..........&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:43 PM) Information: Slow down logging. Log every &amp;lt;2&amp;gt; seconds.&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:43 PM) Information: Reloading&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:45 PM) Information: Reloading.&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:47 PM) Information: Reloading..&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:49 PM) Information: Reloading...&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:51 PM) Information: Reloading....&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:53 PM) Information: Reloading.....&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:55 PM) Information: Reloading......&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:57 PM) Information: Reloading.......&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:07:59 PM) Information: Reloading........&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:08:01 PM) Information: Reloading.........&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:08:03 PM) Information: Reloading..........&lt;/P&gt;
&lt;P&gt;(6/7/2023 9:08:05 PM) Information: Slow down logging. Log every &amp;lt;10&amp;gt; seconds.&lt;/P&gt;
&lt;P&gt;The only thing I can do is manually abort the task.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I understand there are standard reload function in QMC for document reload. However, as I am creating a chained task including call to NP API (to replace the function of reload task in old NP16), so under my scenario, I must use bat approach to trigger reload of QVW.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 13:40:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlikview-Serer-reload-fail-for-qvw-executing-bat/m-p/2081174#M88672</guid>
      <dc:creator>mingsum214</dc:creator>
      <dc:date>2023-06-07T13:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Serer reload fail for qvw executing bat</title>
      <link>https://community.qlik.com/t5/App-Development/Qlikview-Serer-reload-fail-for-qvw-executing-bat/m-p/2081261#M88677</link>
      <description>&lt;P&gt;There are a lot of possible issues, for example:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;has the qmc user the appropriate access rights to the bat ?&lt;/LI&gt;
&lt;LI&gt;has the qmc user a valid QlikView licence ?&lt;/LI&gt;
&lt;LI&gt;also by other called tools like NP, Excel and so on - exists valid licences ?&lt;/LI&gt;
&lt;LI&gt;is any section access applied ?&lt;/LI&gt;
&lt;LI&gt;any OnOpen actions/macros ?&lt;/LI&gt;
&lt;LI&gt;are the user- and document security-properties properly set&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;is the AllowExecuteCommand setting applied within the settings.ini&lt;/LI&gt;
&lt;LI&gt;probably some more reasons ...&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;At first try to execute with the qmc-user on the server the batch manually which should exclude most of the access and licence stuff and also any possible popup-queries asking to allow or config anything. Helpful may also the following links:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/How-to-schedule-the-Batch-file-in-QMC/td-p/807380" target="_blank"&gt;How to schedule the Batch file in QMC - Qlik Community - 807380&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Administration/QDS-is-overwriting-the-Allowexecute-Command-in-windows-2008/td-p/1434705" target="_blank"&gt;Solved: QDS is overwriting the Allowexecute Command in win... - Qlik Community - 1434705&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 16:02:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlikview-Serer-reload-fail-for-qvw-executing-bat/m-p/2081261#M88677</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-06-07T16:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Serer reload fail for qvw executing bat</title>
      <link>https://community.qlik.com/t5/App-Development/Qlikview-Serer-reload-fail-for-qvw-executing-bat/m-p/2081269#M88678</link>
      <description>&lt;P&gt;Access right should be fine as the account using is administrator account for AD.&lt;/P&gt;
&lt;P&gt;The app to reload is simple load inline 4 lines only without any secion access&lt;/P&gt;
&lt;P&gt;AllowExecuteCommand =1 included in setting.ini&lt;/P&gt;
&lt;P&gt;The task started running in QMC but the script cannot end (keep reloading) so most possible cause related to access right / license can be excluded.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 16:13:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlikview-Serer-reload-fail-for-qvw-executing-bat/m-p/2081269#M88678</guid>
      <dc:creator>mingsum214</dc:creator>
      <dc:date>2023-06-07T16:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Serer reload fail for qvw executing bat</title>
      <link>https://community.qlik.com/t5/App-Development/Qlikview-Serer-reload-fail-for-qvw-executing-bat/m-p/2081469#M88693</link>
      <description>&lt;P&gt;Just to clear it - the batch is starting and performing the included actions but not finishing properly and therefore the qmc-task is waiting for any (error/success) response or the batch is starting but not executing anything or the batch didn't start?&lt;/P&gt;
&lt;P&gt;At first I suggest to check the information + links from above again and ensuring that the user + document properties are properly set. This might be done by opening the qvw with the EXECUTE directly with the qmc-user in the desktop client and performing the reload.&lt;/P&gt;
&lt;P&gt;If the above worked but not triggered per qmc-task check again that AllowExecuteCommand is set properly and within the right settings.ini - this means not the "normal" settings.ini within the QlikView server folder else the one within System32.&lt;/P&gt;
&lt;P&gt;Further helpful would be to log the batch-results which could be reached by adding a &amp;gt;&amp;gt; Path/Filename.log to execute-statement and if the batch itself is starting some similar logic within the batch-routine and/or within the called tools. Finding the breaking point is quite near to finding the cause.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 07:04:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlikview-Serer-reload-fail-for-qvw-executing-bat/m-p/2081469#M88693</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-06-08T07:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Serer reload fail for qvw executing bat</title>
      <link>https://community.qlik.com/t5/App-Development/Qlikview-Serer-reload-fail-for-qvw-executing-bat/m-p/2098302#M89940</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22625"&gt;@mingsum214&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By any chance were the necessary configurations completed on the Server for this to work properly ?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptRegularStatements/Execute.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptRegularStatements/Execute.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Also make sure that there are no restrictions , security settings on the server that might prevent some users for executing commands.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 18:19:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlikview-Serer-reload-fail-for-qvw-executing-bat/m-p/2098302#M89940</guid>
      <dc:creator>NadiaB</dc:creator>
      <dc:date>2023-07-28T18:19:55Z</dc:date>
    </item>
  </channel>
</rss>

