<?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: Export to excel fail some time in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-to-excel-fail-some-time/m-p/1286389#M402715</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have a look at the attached QVW file, and it seems excel object is not call by the Task Scheduler but manually it calls and excel created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This line:-&lt;/P&gt;&lt;P&gt;Set excelFile = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jan 2017 11:27:18 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2017-01-24T11:27:18Z</dc:date>
    <item>
      <title>Export to excel fail some time.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-fail-some-time/m-p/1286385#M402711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one Qlik file on that explaining you all one by one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Binary Reading of another Qlik file for data model.&lt;/P&gt;&lt;P&gt;2. One Document Event trigger &amp;gt;&amp;gt; On Post Reload&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.1. By this filters date field is filter with current month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.2. Two Macros running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue Facing:-&lt;/P&gt;&lt;P&gt;1. This Qlik file is running by the Windows bat file on which all this above steps covers but by bat file this macros some time not running and do not create the Excel files.&lt;/P&gt;&lt;P&gt;2. But the same Qlik file is running well if we run it manually and all the two macros run for excel file and properly created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;What is the cause behind this can you all please suggest on this.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did some one experience the same if so please share the thoughts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 12:12:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-fail-some-time/m-p/1286385#M402711</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-01-20T12:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel fail some time</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-fail-some-time/m-p/1286386#M402712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The windows bat file (QV.exe /r) should work well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where I have had issues with this in the past is that if it does stop, for whatever reason, it doesn't exit cleanly and it doesn't notify of the problem.&amp;nbsp; What's more, if you have a windows scheduler task it can stop the subsequent task running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend creating a separate task to monitor the age of the output file, that then alerts if the file has got too stale (you could do this in QlikView using the FileTime function).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at why it has failed, the most likely reason is with the writing of the output file.&amp;nbsp; Specifically, if you are exporting to Excel and someone has the output file open then the write will fail as the file is locked.&amp;nbsp; An approach to this would be to put a suffix on each file created, so there is no overwrite.&amp;nbsp; You would then just have to clear down redundant files later - I don't know if that is an option?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2017 13:26:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-fail-some-time/m-p/1286386#M402712</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2017-01-21T13:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel fail some time</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-fail-some-time/m-p/1286387#M402713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For give time on this i agree with you on this but again with manually it works (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;QV.exe /r) well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my Bat file code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAT FILE CODE:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Del D:\SDATA\Sdata.xlsx&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"C:\Program Files\QlikView\Qv.exe" /l D:\APP\SDataApp.qvw"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;Here with you i attached two Macro code as well as, please have a look and let me know how we can prompt message from this code.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jan 2017 09:03:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-fail-some-time/m-p/1286387#M402713</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-01-22T09:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel fail some time</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-fail-some-time/m-p/1286388#M402714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without having an application to try this in and an environment set up as your own I can't really test this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to ensure that nothing appears on the screen, particularly a dialog box with an OK prompt as this will stall things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wrapping the call in some VBSScript may allow you to ensure the environment is ready before calling QV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you are calling macro code you could look at calling the QlikView API from a VBScript file to do the export, but this is not something I have had a need to try myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I can't be of more help at this time.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 21:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-fail-some-time/m-p/1286388#M402714</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2017-01-23T21:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel fail some time</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-fail-some-time/m-p/1286389#M402715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have a look at the attached QVW file, and it seems excel object is not call by the Task Scheduler but manually it calls and excel created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This line:-&lt;/P&gt;&lt;P&gt;Set excelFile = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 11:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-fail-some-time/m-p/1286389#M402715</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-01-24T11:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel fail some time</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-fail-some-time/m-p/1286390#M402716</link>
      <description>&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2019 11:09:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-fail-some-time/m-p/1286390#M402716</guid>
      <dc:creator>xyz1</dc:creator>
      <dc:date>2019-04-14T11:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel fail some time</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-fail-some-time/m-p/1286391#M402717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you mention about the Internet browser History or Explorer Settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 13:24:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-fail-some-time/m-p/1286391#M402717</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-01-24T13:24:33Z</dc:date>
    </item>
  </channel>
</rss>

