<?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 stopps without error - only in version 12.20 - in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-stopps-without-error-only-in-version-12-20/m-p/1768077#M718987</link>
    <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;thanks a lot!&amp;nbsp;&lt;BR /&gt;Of course, you are right concerning the versions. However, I had no choice and had to install 12.20&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":weary_face:"&gt;😩&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I now added some&amp;nbsp;&lt;SPAN&gt;Sleep-statements after each variable setting &amp;nbsp;and it now works. I am testing now how many seconds of pausing at what step is necessary.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Frank&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 12 Dec 2020 10:14:24 GMT</pubDate>
    <dc:creator>f1234567</dc:creator>
    <dc:date>2020-12-12T10:14:24Z</dc:date>
    <item>
      <title>Macro stopps without error - only in version 12.20 -</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-stopps-without-error-only-in-version-12-20/m-p/1767594#M718985</link>
      <description>&lt;P&gt;&lt;FONT size="3"&gt;Hi experts,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;I found a strange behavior, starting with QV version 12.20. (In QV 11 it has been working all right):&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;After&amp;nbsp;loading some data I want to export one file to excel.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;I use this macro:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&amp;nbsp;&lt;STRONG&gt;&lt;FONT size="1" color="#0000ff"&gt;Sub &lt;/FONT&gt;&lt;/STRONG&gt;Excel_Export&lt;BR /&gt;'Export als Excel Datei&lt;BR /&gt;strFP3 = ActiveDocument.Variables("vExportPathCloud").GetContent.String&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;Set objExcel = ActiveDocument.GetSheetObject("CH57")&lt;BR /&gt;strName = &amp;nbsp;ActiveDocument.Variables("vNameExcelExp").GetContent.String&lt;BR /&gt;filepath3 = strFP3 &amp;amp;strName&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'edit the location of file&lt;BR /&gt;objExcel.ExportBiff filepath3&lt;BR /&gt;msgbox("Datei "&amp;amp;filepath3&amp;amp;" erstellt")&lt;BR /&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="1" color="#0000ff"&gt;End&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT size="1" color="#0000ff"&gt;Sub &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;The test shows no errors and it worked fine in version 11.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;Strange:&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;Starting the macro: macro runs, then QV opens the macro, so that above text can be read. But it does not export the xls file.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;So, first I thought the reason&amp;nbsp;are the variables (&lt;FONT size="1"&gt;vNameExcelExp&lt;/FONT&gt;,&lt;FONT size="1"&gt;vExportPathCloud&lt;/FONT&gt;) . But the variables are generated and I can show them up in text-boxes.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;My work-around:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;I safe and&amp;nbsp;&lt;STRONG&gt;close&lt;/STRONG&gt; QV and then reopen QV. After that starting the macro works all right. The xls-file is exported.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;I also tested:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;Just saving QV and starting the macro: macro stopps&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;Has anybody of you seen a similar behavior? &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;What could be the reason?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;Many thanks!&lt;BR /&gt;Frank&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:43:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-stopps-without-error-only-in-version-12-20/m-p/1767594#M718985</guid>
      <dc:creator>f1234567</dc:creator>
      <dc:date>2024-11-16T17:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Macro stopps without error - only in version 12.20 -</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-stopps-without-error-only-in-version-12-20/m-p/1767652#M718986</link>
      <description>&lt;P&gt;Just put a msgbox below each statement and you will find the point where the macro breaks. If you here returned the variable-values you could also check if they are correct within the macro, too. Also an On Error Resume Next and a msgbox err.number &amp;amp; err.description may give further hints to the cause. Other often needed statements in regard to exports are WaitForIdle- and Sleep-statements to ensure that Qlik finished all calculations before going to the next statement and to give the OS enough time to perform the addressed I/O.&lt;/P&gt;&lt;P&gt;Further your issue might be caused through a mixmatch of different releases - creating, updating and usage release and also between client and server releases. Another look might go to the use of prj-folders.&lt;/P&gt;&lt;P&gt;Beside this why upgrading now to 12.2 which is already out of support - and if I remember correctly the first releases of 12.2 has had some bugs. The most current version is 12.5 SR3.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 14:22:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-stopps-without-error-only-in-version-12-20/m-p/1767652#M718986</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-12-10T14:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Macro stopps without error - only in version 12.20 -</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-stopps-without-error-only-in-version-12-20/m-p/1768077#M718987</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;thanks a lot!&amp;nbsp;&lt;BR /&gt;Of course, you are right concerning the versions. However, I had no choice and had to install 12.20&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":weary_face:"&gt;😩&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I now added some&amp;nbsp;&lt;SPAN&gt;Sleep-statements after each variable setting &amp;nbsp;and it now works. I am testing now how many seconds of pausing at what step is necessary.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Frank&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Dec 2020 10:14:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-stopps-without-error-only-in-version-12-20/m-p/1768077#M718987</guid>
      <dc:creator>f1234567</dc:creator>
      <dc:date>2020-12-12T10:14:24Z</dc:date>
    </item>
  </channel>
</rss>

