<?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 Error handling in script vs file lock on LOAD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-handling-in-script-vs-file-lock-on-LOAD/m-p/1105101#M366060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, i have a little problem in my QlickView script. I'm loading data from sql (i change it to INLINE just for this example) and than save in QVD file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="135850" alt="Q1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/135850_Q1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in next part of script i try to load max 'BatchDate' from some qvd files (including tempTab) but not all of them have this column. i found solution on this which is using error_mode&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="135852" alt="Q2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/135852_Q2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And... it does not work &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; script finish with error on&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Store tempTab into tempTab.qvd (qvd);&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;without any message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I cant delete tempTab.qvd without closing QlikView application.&lt;/P&gt;&lt;P&gt;2. When qvd file &lt;SPAN lang="en"&gt;contains BatchDate column everything is fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For me, it seems like&amp;nbsp; QlikView on ErrorMode 0 when an exception is thrown on&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;LOAD date(max(BatchDate),'yyyy-MM-dd') as MaxDate from tempTab.qvd (qvd);&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;line, does not interrupt script but&lt;/P&gt;&lt;P&gt;does not remove lock on file too so i cant store anything in this file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this is only my conjectures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ad 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;When i try this on my personal computer at home where i download a QlikView 12 this problem doesn't exist.&amp;nbsp; But i must use older QlikView in work&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Aug 2016 11:12:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-08-29T11:12:14Z</dc:date>
    <item>
      <title>Error handling in script vs file lock on LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Error-handling-in-script-vs-file-lock-on-LOAD/m-p/1105101#M366060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, i have a little problem in my QlickView script. I'm loading data from sql (i change it to INLINE just for this example) and than save in QVD file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="135850" alt="Q1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/135850_Q1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in next part of script i try to load max 'BatchDate' from some qvd files (including tempTab) but not all of them have this column. i found solution on this which is using error_mode&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="135852" alt="Q2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/135852_Q2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And... it does not work &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; script finish with error on&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Store tempTab into tempTab.qvd (qvd);&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;without any message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I cant delete tempTab.qvd without closing QlikView application.&lt;/P&gt;&lt;P&gt;2. When qvd file &lt;SPAN lang="en"&gt;contains BatchDate column everything is fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For me, it seems like&amp;nbsp; QlikView on ErrorMode 0 when an exception is thrown on&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;LOAD date(max(BatchDate),'yyyy-MM-dd') as MaxDate from tempTab.qvd (qvd);&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;line, does not interrupt script but&lt;/P&gt;&lt;P&gt;does not remove lock on file too so i cant store anything in this file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this is only my conjectures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ad 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;When i try this on my personal computer at home where i download a QlikView 12 this problem doesn't exist.&amp;nbsp; But i must use older QlikView in work&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 11:12:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-handling-in-script-vs-file-lock-on-LOAD/m-p/1105101#M366060</guid>
      <dc:creator />
      <dc:date>2016-08-29T11:12:14Z</dc:date>
    </item>
  </channel>
</rss>

