<?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: OnOpen Trigger - macro not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429634#M160147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I keep giving you half-detail, because I don't know what is relevant and what not. Apologies for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Windows batch file looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PowerShell -file "C:\Documents and Settings\GERHARDL\My Documents\TENACITY\Scripts\QLIKVIEW_FILES_COPY.ps1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it actually calls a Powershell script, and fromthis PS script I Open the QV file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This script is now actually busy executing as part of my morning scripts - I have moved around a few things and added additional sleep before the macro that was failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will see if it works today.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Feb 2013 07:44:01 GMT</pubDate>
    <dc:creator>gerhardl</dc:creator>
    <dc:date>2013-02-13T07:44:01Z</dc:date>
    <item>
      <title>OnOpen Trigger - macro not working</title>
      <link>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429630#M160143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a document with OnOpen triggers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a few triggers, 3 that run macros to create excel reports, and 3 that run macro reloads, saves and quits the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first excel report macros run perfectly, then when the 3rd one runs it opens the Edit Module and then just hangs there. There is no error message. If I click on Okay it then skips that macro and go on with the others (saves and quits).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can run this macro from a button with no problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on why this would happen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have another document that should Open, Reload, Save and Quit. It works 95% of the time - but occasionally it just opens and triggers nothing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I open both these files from a windows batch file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel like the OnOpen triggers are very unreliable... I have no other explantion for why it would only work sometimes..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 14:29:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429630#M160143</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2013-02-12T14:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: OnOpen Trigger - macro not working</title>
      <link>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429631#M160144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It could have several causes, the network is sometimes too slow and a save-statement is not finish before the next step will exceute - try a sleep or wait statement between the macro parts. Also other windows server activities like windows shadow copies could break the execution without an error message - check the event logging on correlation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 14:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429631#M160144</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2013-02-12T14:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: OnOpen Trigger - macro not working</title>
      <link>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429632#M160145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I should have mentioned that this is not on a server - it happens on QlikView Desktop, on a PC I use specifically for scripts and reporting purposes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do have a sleep between the reports - but I (for some reason) have them as separate macros. I'm going to add the sleep at the end or start of the report macros themselves, this way there are less macros to execute. Maybe that will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other opinions/comments would be highly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 15:02:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429632#M160145</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2013-02-12T15:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: OnOpen Trigger - macro not working</title>
      <link>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429633#M160146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another reason could be the start batch-parameter - try changing from /r to /l&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading active_link" href="https://community.qlik.com/message/296673#296673" title="http://community.qlik.com/message/296673#296673"&gt;http://community.qlik.com/message/296673#296673&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>Wed, 13 Feb 2013 07:36:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429633#M160146</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2013-02-13T07:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: OnOpen Trigger - macro not working</title>
      <link>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429634#M160147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I keep giving you half-detail, because I don't know what is relevant and what not. Apologies for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Windows batch file looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PowerShell -file "C:\Documents and Settings\GERHARDL\My Documents\TENACITY\Scripts\QLIKVIEW_FILES_COPY.ps1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it actually calls a Powershell script, and fromthis PS script I Open the QV file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This script is now actually busy executing as part of my morning scripts - I have moved around a few things and added additional sleep before the macro that was failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will see if it works today.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 07:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429634#M160147</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2013-02-13T07:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: OnOpen Trigger - macro not working</title>
      <link>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429635#M160148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Failed again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 07:50:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429635#M160148</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2013-02-13T07:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: OnOpen Trigger - macro not working</title>
      <link>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429636#M160149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then change the PowerShell script from:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"D:\QlikView_Client\QV.exe" /r "D:\YOURFILE.qvw"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&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;Some activities requires run with priority and not as background process.&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, 13 Feb 2013 08:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429636#M160149</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2013-02-13T08:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: OnOpen Trigger - macro not working</title>
      <link>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429637#M160150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The powershell script opens a file like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Invoke-Item "C:\Users\tenba1\Documents\QlikView\DAILY QV REPORTS.qvw"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried changing the priority here but have not figured out how yet. New to PowerShell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Teh Scheduled Task (which launches the windows batch file) is set to run on the highest priority.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help - I'll keep playing around and hopefully I can figure it out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 08:23:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429637#M160150</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2013-02-13T08:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: OnOpen Trigger - macro not working</title>
      <link>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429638#M160151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Gerhard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using On PostReload Trigger anywhere .. beacuse they are very unreliable as mentioned in QlikView Refrence Manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also Please try giving system access to Macro module...CTRL+M opens the macro window. &lt;/P&gt;&lt;P&gt;On the left side you will see two drop downs, Try giving system access via that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing u can try is in documnet properties there is a security tab,&lt;/P&gt;&lt;P&gt;Select Appropriate options from that which might help you, For Eh: Allow Exoprt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Utsav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 08:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429638#M160151</guid>
      <dc:creator />
      <dc:date>2013-02-13T08:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: OnOpen Trigger - macro not working</title>
      <link>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429639#M160152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Utsav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, I only use OnOpen triggers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System access was already given in the Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did notice in the document security tab that the "Macro Override Security" box was not ticked. I have now ticked this. Not sure if this will make a difference since I can run the macro fine from a button?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I also now did, was to not run the problem macro on its own anymore, but rather to add this macro's code to another macro that currently runs without problems. So I now have one macro that does two completely different things... which I don't like doing, but now I have one less trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works when I kick it off manually (but it always does) - so I'll see what happens tomorrow morning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 08:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429639#M160152</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2013-02-13T08:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: OnOpen Trigger - macro not working</title>
      <link>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429640#M160153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I work not with PowerShell and have thought the syntax is the same as batch, but perhaps a start-parameter is set as default and another parameter can added.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise Utsav had right, the security settings from module must allow extern access.&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, 13 Feb 2013 08:33:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429640#M160153</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2013-02-13T08:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: OnOpen Trigger - macro not working</title>
      <link>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429641#M160154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i too faced same kind of situation what you explained while using multiple macro calls in&amp;nbsp; OnOpen trigger. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had just added extra line in macro i.e; ActiveDocument.GetApplication.WaitForIdle then it got resolved my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in your case just add the macro line "ActiveDocument.GetApplication.WaitForIdle" above your "Reload" line in 3rd macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it will helps you. Plz let me know if that works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 09:11:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429641#M160154</guid>
      <dc:creator />
      <dc:date>2014-07-03T09:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: OnOpen Trigger - macro not working</title>
      <link>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429642#M160155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What client are you using, when open? AJAX or plugin?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 09:14:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429642#M160155</guid>
      <dc:creator />
      <dc:date>2014-07-03T09:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: OnOpen Trigger - macro not working</title>
      <link>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429643#M160156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ajax or else IE plugIn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because only in IE plugin mode the macros will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 10:34:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnOpen-Trigger-macro-not-working/m-p/429643#M160156</guid>
      <dc:creator>vardhancse</dc:creator>
      <dc:date>2014-07-03T10:34:19Z</dc:date>
    </item>
  </channel>
</rss>

