<?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: Publisher - Run task with execute command in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Publisher-Run-task-with-execute-command/m-p/1177229#M1252774</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you aware of the new AllowExecuteCommand switch in SR11? &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;I believe the default in SR11 is allow, and you didn't say your script was failing, so this is probably not the issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do those bat files refer to drive letters or something that won't work in a service? Do you see any orphaned cmd.exe tasks in Task Manager on the server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try ECHO a message from the bat file to a file to see if the task is actually executing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jul 2016 17:25:47 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2016-07-18T17:25:47Z</dc:date>
    <item>
      <title>Publisher - Run task with execute command</title>
      <link>https://community.qlik.com/t5/QlikView/Publisher-Run-task-with-execute-command/m-p/1177226#M1252765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been working in a project where I need to run a sub where I execute CMD to run an external app recursively as per a table generated in my QVW. &lt;BR /&gt; &lt;/P&gt;&lt;P&gt;The thing is, when I schedule that app to reload in my Publisher, it runs without errors, but apparently it won't run the external commands.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; I don't know what to do really, as all system access privileges and stuff is checked in the script and app...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; This is the Statement I have in my code that won't run... the thing is when I run the app manually, it works both with my account and with the service account used by the publisher server. &lt;/P&gt;&lt;P&gt;So apparently it is not a folder/execution permission issue... !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sub.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/131650_sub.jpg" /&gt;&lt;/P&gt;&lt;P&gt;Any suggestions to run this as a task from Publisher? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Publisher-Run-task-with-execute-command/m-p/1177226#M1252765</guid>
      <dc:creator>dpduran</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Publisher - Run task with execute command</title>
      <link>https://community.qlik.com/t5/QlikView/Publisher-Run-task-with-execute-command/m-p/1177227#M1252768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which version and SR of QlikView?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 16:15:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Publisher-Run-task-with-execute-command/m-p/1177227#M1252768</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-07-18T16:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Publisher - Run task with execute command</title>
      <link>https://community.qlik.com/t5/QlikView/Publisher-Run-task-with-execute-command/m-p/1177228#M1252771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for getting in touch, we're running a clustered environment with version 11.20.12904.0 That is SR12 If I'm not wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 16:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Publisher-Run-task-with-execute-command/m-p/1177228#M1252771</guid>
      <dc:creator>dpduran</dc:creator>
      <dc:date>2016-07-18T16:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Publisher - Run task with execute command</title>
      <link>https://community.qlik.com/t5/QlikView/Publisher-Run-task-with-execute-command/m-p/1177229#M1252774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you aware of the new AllowExecuteCommand switch in SR11? &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;I believe the default in SR11 is allow, and you didn't say your script was failing, so this is probably not the issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do those bat files refer to drive letters or something that won't work in a service? Do you see any orphaned cmd.exe tasks in Task Manager on the server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try ECHO a message from the bat file to a file to see if the task is actually executing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 17:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Publisher-Run-task-with-execute-command/m-p/1177229#M1252774</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-07-18T17:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Publisher - Run task with execute command</title>
      <link>https://community.qlik.com/t5/QlikView/Publisher-Run-task-with-execute-command/m-p/1177230#M1252777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your suggestions. Apparently due to security settings, I was using network paths and that is not allowed when I launch cmd.exe in my server. It actually was not just that I was using paths to launch the stuff I needed, it is also the path where it starts as we use a network file share machine to store the qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a cmd is launched from there, It tries to use that folder as it's starting point, but due to security settings, it takes you back to Windows directory.&lt;BR /&gt;Then, relative paths from there don't work as it's not your qvw folder so it won't work at all. &lt;BR /&gt;In addition to the starting folder for the CMD it's the network paths not being recognized properly when executing enything else, so fixed straight await with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just added an execute command at the beggining of the script to map to a drive the network path I wanted and after that I changed all paths to use that unit instead of network \\whatever paths&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;execute cmd.exe c/ NET USE Z: "\\path"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it works from Publisher without any problem at all.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I've searched for the AllowExecuteCommand in my settings.ini file and it's not there, but as you say in your useful blog post, it is by default set to 1 so I guess either I looked in the wrong place or it doesn't need to be declared in the settings file to be 1 as it's the default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway. It's working now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: I'm marking my answer as correct so It appears as solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 09:54:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Publisher-Run-task-with-execute-command/m-p/1177230#M1252777</guid>
      <dc:creator>dpduran</dc:creator>
      <dc:date>2016-07-19T09:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Publisher - Run task with execute command</title>
      <link>https://community.qlik.com/t5/QlikView/Publisher-Run-task-with-execute-command/m-p/1177231#M1252781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I noticed that you are either using no path or a relative path to specify the location of your external executables. Try adding full path specifications (start with an existing drive letter, not one you mapped yourself).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 10:41:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Publisher-Run-task-with-execute-command/m-p/1177231#M1252781</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-07-19T10:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Publisher - Run task with execute command</title>
      <link>https://community.qlik.com/t5/QlikView/Publisher-Run-task-with-execute-command/m-p/1177232#M1252783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for popping up, it was al related to CMD security settings. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added a net use command at the beggining of the script and used that drive to reference the bat and executable files I was refering with the execute command.Now everything is working fine &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 10:49:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Publisher-Run-task-with-execute-command/m-p/1177232#M1252783</guid>
      <dc:creator>dpduran</dc:creator>
      <dc:date>2016-07-19T10:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Publisher - Run task with execute command</title>
      <link>https://community.qlik.com/t5/QlikView/Publisher-Run-task-with-execute-command/m-p/1177233#M1252784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi @Diego Perez,&lt;/P&gt;&lt;P&gt;I am facing the same issue.&lt;/P&gt;&lt;P&gt;On my Qlikview server I have R installed, on the E drive I have the R script, which is being Called by a Batch file (ReloadR.bat)&lt;/P&gt;&lt;P&gt;In Qlikview Script I am using following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXECUTE cmd /C "E:\Project\R Analytics\ReloadR.bat";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine locally, but when used with Publisher, it completes running without running the batch file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All execution done on one server machine, nowhere are network paths being used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Swapneel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 12:00:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Publisher-Run-task-with-execute-command/m-p/1177233#M1252784</guid>
      <dc:creator />
      <dc:date>2016-11-29T12:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Publisher - Run task with execute command</title>
      <link>https://community.qlik.com/t5/QlikView/Publisher-Run-task-with-execute-command/m-p/1177234#M1252787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/146662"&gt;swapneel22&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Have you checked all permissions are correctly set?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Try opening the doc in Desktop client, go to &lt;STRONG&gt;Settings &amp;gt; User Preferences &amp;gt; Security tab&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Then check if it's unchecked the option that says :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;STRONG&gt;"Script (Allow Database Write and Execute Statements)"&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 10:45:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Publisher-Run-task-with-execute-command/m-p/1177234#M1252787</guid>
      <dc:creator>dpduran</dc:creator>
      <dc:date>2017-01-24T10:45:03Z</dc:date>
    </item>
  </channel>
</rss>

