<?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' statement in QVW file under QMC in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Execute-statement-in-QVW-file-under-QMC/m-p/1172437#M380996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I have checked&amp;nbsp; - AllowExecuteCommand = 1. So, it seems that it is set correctly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any other idea? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 May 2016 13:05:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-05-25T13:05:07Z</dc:date>
    <item>
      <title>'Execute' statement in QVW file under QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-statement-in-QVW-file-under-QMC/m-p/1172433#M380992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you ever tried to run on QMC qvw file which contains Execute statement? &lt;/P&gt;&lt;P&gt;What I would like to do is to execute some vbs script in qvw's loop, however it doesn't work on QMC.&lt;/P&gt;&lt;P&gt;It works appropriately when I open and reload the document. &lt;/P&gt;&lt;P&gt;But on the QMC it still fails.&lt;/P&gt;&lt;P&gt;Log: “Error: The source document was not reloaded successfully. DocumentPath = ”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any advice or suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 20:25:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-statement-in-QVW-file-under-QMC/m-p/1172433#M380992</guid>
      <dc:creator />
      <dc:date>2016-05-18T20:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: 'Execute' statement in QVW file under QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-statement-in-QVW-file-under-QMC/m-p/1172434#M380993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which version are you using? There have been some changes to authorization of Execute statement in recent versions:&lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikviewcookbook.com/2016/01/authorizing-the-script-execute-statement/" title="http://qlikviewcookbook.com/2016/01/authorizing-the-script-execute-statement/"&gt;Authorizing the Script EXECUTE Statement | Qlikview Cookbook&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you sure the scripts run fine under the user that is used to reload your documents on the server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you also looked into the document log, if there is any hint why the script failed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 21:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-statement-in-QVW-file-under-QMC/m-p/1172434#M380993</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-18T21:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: 'Execute' statement in QVW file under QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-statement-in-QVW-file-under-QMC/m-p/1172435#M380994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;QV Version QV11 SR12 (11.20.12904.0)&lt;/LI&gt;&lt;LI&gt;Yes I am sure that script works fine under the user.&lt;/LI&gt;&lt;LI&gt;I have checked document logs and didn't find any hints... Script just stopped on Execute statement...&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 15:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-statement-in-QVW-file-under-QMC/m-p/1172435#M380994</guid>
      <dc:creator />
      <dc:date>2016-05-19T15:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: 'Execute' statement in QVW file under QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-statement-in-QVW-file-under-QMC/m-p/1172436#M380995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you confirm the "AllowExecuteCommand" setting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 15:53:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-statement-in-QVW-file-under-QMC/m-p/1172436#M380995</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-05-19T15:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: 'Execute' statement in QVW file under QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-statement-in-QVW-file-under-QMC/m-p/1172437#M380996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I have checked&amp;nbsp; - AllowExecuteCommand = 1. So, it seems that it is set correctly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any other idea? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 13:05:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-statement-in-QVW-file-under-QMC/m-p/1172437#M380996</guid>
      <dc:creator />
      <dc:date>2016-05-25T13:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: 'Execute' statement in QVW file under QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-statement-in-QVW-file-under-QMC/m-p/1172438#M380997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible that the vbs script being run by the EXECUTE can not run successfully under the account running the QV Server? Can you logon to a desktop using the server account and try to run the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 21:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-statement-in-QVW-file-under-QMC/m-p/1172438#M380997</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-05-25T21:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: 'Execute' statement in QVW file under QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-statement-in-QVW-file-under-QMC/m-p/1172439#M380998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that there is no the problem with EXECUTE statement. VBS is executed and stops on some part of script related to excel, like:&lt;/P&gt;&lt;P&gt;objExcel.Workbooks.OpenText...&lt;/P&gt;&lt;P&gt;objExcel.ActiveWorkbook.SaveAs...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However some other part of the script related to excel works correctly. For example: &lt;/P&gt;&lt;P&gt;objExcel.Workbooks.Add&lt;/P&gt;&lt;P&gt;objExcel.ActiveWorkbook.Close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I reload this vbs 'manually' directly from qvw it works correctly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it possible that the console user has incorrectly permission set for Excel application?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Rob for your suggestion. I am not able to log as a console user. I will ask admin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 22:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-statement-in-QVW-file-under-QMC/m-p/1172439#M380998</guid>
      <dc:creator />
      <dc:date>2016-05-25T22:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: 'Execute' statement in QVW file under QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-statement-in-QVW-file-under-QMC/m-p/1172440#M380999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have had also various problems by the run from batches and programs triggered through EXECUTE staments from the qmc (not only yet in QV 11 SR12 also earlier with QV 10) and I haven't implemented any real solutions - I simply use workarounds (because they worked before I knew - very probably not all but surely some important one - what is the cause for the problems).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reason one is that the qvb.exe runs as a background-service and if it triggered external tasks they will run also as a kind of a background-service without a gui and it seems that some features need a gui. Probably not directly the gui - it's more that then some system-dll's aren't available and/or that security settings like the settings from the modul-security will be ignored and/or that there are certain dependencies between anything which aren't covered. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example of this is already the difference between the command-batch parameter of /r and /l:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REM /r = open+reload+save+close as background process&amp;nbsp; /l = open+reload+save with GUI&lt;/P&gt;&lt;P&gt;"D:\QlikView_Client\QV.exe" /l "D:\YOURFILE.qvw"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example with using /r as parameter I couldn't send mails per cdo.message (no error-messages) whereby if I use /l it worked smoothly (i need only to close these instance after finishing per: ActiveDocument.GetApplication.Quit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another reason are user-settings/configurations from the user who runs the qvb.exe respectively if you run your qlikview server without a user-login because then the windows default-user will be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like above mentioned I didn't solved it. So my workarounds are to run the tasks with a gui and beeing always logged in (not with the user from the server-account (had no access to our network storage) else with my normal user-account - and yes I do also some runas-stuff but not everything worked in each case). Further helpful is it not to start the batches directly from Execute-statement else to start a windows-task which then started the real tasks, see for this: &lt;A href="https://community.qlik.com/message/1046385"&gt;Re: Run Excel macro via QMC&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 08:19:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-statement-in-QVW-file-under-QMC/m-p/1172440#M380999</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-05-26T08:19:55Z</dc:date>
    </item>
  </channel>
</rss>

