<?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: Macro not running in task in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-not-running-in-task/m-p/753#M137</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFAIK as a general rule no macro won't be executed by directly reloading an application through a qmc-task or starts the qmc-task an external batch/task? Are you sure it had worked before QV Nov'17?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jan 2018 12:16:31 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2018-01-15T12:16:31Z</dc:date>
    <item>
      <title>Macro not running in task</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-not-running-in-task/m-p/751#M135</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;I've been having a problem (which seems to have been happening since updating to QV Nov'17 version) with running a macro. There is a macro that does some text encoding on running of the scheduled task, does not access the file system, but will only run when ran on QV Desktop not in the QV Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked in the QMC and macro execution is allowed (although unsafe macros is not ticked).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand why the macro will not run when the server runs the task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 11:54:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-not-running-in-task/m-p/751#M135</guid>
      <dc:creator>chris_johnson</dc:creator>
      <dc:date>2018-01-15T11:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not running in task</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-not-running-in-task/m-p/752#M136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam, there is a list of macro limitations in server:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/UsingMacrosonQVS.htm" title="http://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/UsingMacrosonQVS.htm"&gt;Using Macros in QV Documents on the QV-Server ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe is using OnPostReload trigger?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 12:14:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-not-running-in-task/m-p/752#M136</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-01-15T12:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not running in task</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-not-running-in-task/m-p/753#M137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFAIK as a general rule no macro won't be executed by directly reloading an application through a qmc-task or starts the qmc-task an external batch/task? Are you sure it had worked before QV Nov'17?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 12:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-not-running-in-task/m-p/753#M137</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-01-15T12:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not running in task</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-not-running-in-task/m-p/754#M138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It did work before the latest QV Nov'17 release, although I know that could be a coincidence. We had to upgrade due to a few other issues so could be something unrelated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 12:29:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-not-running-in-task/m-p/754#M138</guid>
      <dc:creator>chris_johnson</dc:creator>
      <dc:date>2018-01-15T12:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not running in task</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-not-running-in-task/m-p/755#M139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the VBScript function by the way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function URLEncode(ByVal str)&lt;/P&gt;&lt;P&gt; Dim strTemp, strChar&lt;/P&gt;&lt;P&gt; Dim intPos, intASCII&lt;/P&gt;&lt;P&gt; strTemp = ""&lt;/P&gt;&lt;P&gt; strChar = ""&lt;/P&gt;&lt;P&gt; For intPos = 1 To Len(str)&lt;/P&gt;&lt;P&gt;&amp;nbsp; intASCII = Asc(Mid(str, intPos, 1))&lt;/P&gt;&lt;P&gt;&amp;nbsp; If intASCII = 32 Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; strTemp = strTemp &amp;amp; "+"&lt;/P&gt;&lt;P&gt;&amp;nbsp; ElseIf ((intASCII &amp;lt; 123) And (intASCII &amp;gt; 96)) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; strTemp = strTemp &amp;amp; Chr(intASCII)&lt;/P&gt;&lt;P&gt;&amp;nbsp; ElseIf ((intASCII &amp;lt; 91) And (intASCII &amp;gt; 64)) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; strTemp = strTemp &amp;amp; Chr(intASCII)&lt;/P&gt;&lt;P&gt;&amp;nbsp; ElseIf ((intASCII &amp;lt; 58) And (intASCII &amp;gt; 47)) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; strTemp = strTemp &amp;amp; Chr(intASCII)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; strChar = Trim(Hex(intASCII))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If intASCII &amp;lt; 16 Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strTemp = strTemp &amp;amp; "%0" &amp;amp; strChar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strTemp = strTemp &amp;amp; "%" &amp;amp; strChar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt; Next&lt;/P&gt;&lt;P&gt; URLEncode = strTemp&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 12:54:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-not-running-in-task/m-p/755#M139</guid>
      <dc:creator>chris_johnson</dc:creator>
      <dc:date>2018-01-15T12:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not running in task</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-not-running-in-task/m-p/756#M140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please provide some more informations if the qvw is directly reloaded or per external batches and how the macro is triggerred and how it does look like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further there was various changes on the security-settings between the releases especially if the old release was an early QV 11 then there was many changes to the current release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 13:09:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-not-running-in-task/m-p/756#M140</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-01-15T13:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not running in task</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-not-running-in-task/m-p/757#M141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I posted the macro function itself to the post but it is still being moderated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The previous release was version 12 SR 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The macro is triggered via a line in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let urlEncoded = URLEncode('$(url)');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where url is the url for what I need to reference (a Google Analytics address) and URLEncode is the VBScript funtion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 13:30:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-not-running-in-task/m-p/757#M141</guid>
      <dc:creator>chris_johnson</dc:creator>
      <dc:date>2018-01-15T13:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not running in task</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-not-running-in-task/m-p/758#M142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. it's a function My using of vbs-functions during the load was along time ago and probably before we extended our solution to a server-environment. Therefore I'm not really sure but if you say it worked I think vbs-functions are executed as long they not trying to access the ActiveDocument.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore I could imagine that some security-setting within the settings.ini is now per default different as before but I don't know which one. It's not directly related to your case but similar from (il)logic of changing settings and may help you to get ideas: &lt;A href="http://qlikviewcookbook.com/2016/12/qv-12-10-can-execute-external-programs-is-back/" title="http://qlikviewcookbook.com/2016/12/qv-12-10-can-execute-external-programs-is-back/"&gt;QV 12.10 “Can Execute External Programs” is back | Qlikview Cookbook&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your vbs-routine isn't too complicated you could try to switch it into a qlikview-variable and/or a sub-routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 14:40:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-not-running-in-task/m-p/758#M142</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-01-15T14:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not running in task</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-not-running-in-task/m-p/759#M143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand this routine right it adjust an invalid url through replacing invalid chars into a valid url. Something like this could be done with a mapsubstring() like in this example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1226884"&gt;Re: Passing parameter strings that contain special characters&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>Mon, 15 Jan 2018 16:41:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-not-running-in-task/m-p/759#M143</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-01-15T16:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not running in task</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-not-running-in-task/m-p/760#M144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I switched it to script using the mapsubstring() function as you suggested (link to example I used: &lt;A href="https://community.qlik.com/thread/111059"&gt;String manipulation&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 09:28:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-not-running-in-task/m-p/760#M144</guid>
      <dc:creator>chris_johnson</dc:creator>
      <dc:date>2018-01-16T09:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not running in task</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-not-running-in-task/m-p/761#M145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this would solve the origin cause: &lt;A href="https://community.qlik.com/message/1418417"&gt;Re: Problems calling functions from load script QV 12&lt;/A&gt; whereby in your case I believe I would remain by the mapsubstring-approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 06:35:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-not-running-in-task/m-p/761#M145</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-01-17T06:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not running in task</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-not-running-in-task/m-p/762#M146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case it helps in other cases, just readed this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlikview.com/thread/282038" title="https://community.qlikview.com/thread/282038"&gt;QlikView November 2017 and JScript Modules not ... | Qlik Community&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 12:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-not-running-in-task/m-p/762#M146</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-01-17T12:56:15Z</dc:date>
    </item>
  </channel>
</rss>

