<?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 Incemental Load difficulties in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incemental-Load-difficulties/m-p/706608#M672077</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to perform an incremental load where Qlikview needs to check whether the next Excel data sheet should be loaded or not. &lt;/P&gt;&lt;P&gt;The first part of the filename (YYYYMM) should be compared with vIncrementalExpression, which will be 0 if the qvd doens't exist or the max YYYYMM.&lt;BR /&gt;Problem is that Qlikview skips this comparison. So in the script stated below, it has vIncrementalExpression = 0, vFileBaseName = 201301 but does not compare the two and directly goes to the next file without performing te CALLs.&lt;/P&gt;&lt;P&gt;Does someone know why the if statement is skipped?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each vFileName in FileList('C:\Users\Data\QVData\Factuurgegevens\*.xlsx')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; LET vFileBaseName = SubField(Subfield('$(vFileName)', '\', -1), 'Factuurregels', 1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF $(vFileBaseName) &amp;gt; $(vIncrementalExpression) THEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL Laden_Output1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL Laden_Output2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; NEXT vFileName&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Sep 2014 13:57:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-26T13:57:39Z</dc:date>
    <item>
      <title>Incemental Load difficulties</title>
      <link>https://community.qlik.com/t5/QlikView/Incemental-Load-difficulties/m-p/706608#M672077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to perform an incremental load where Qlikview needs to check whether the next Excel data sheet should be loaded or not. &lt;/P&gt;&lt;P&gt;The first part of the filename (YYYYMM) should be compared with vIncrementalExpression, which will be 0 if the qvd doens't exist or the max YYYYMM.&lt;BR /&gt;Problem is that Qlikview skips this comparison. So in the script stated below, it has vIncrementalExpression = 0, vFileBaseName = 201301 but does not compare the two and directly goes to the next file without performing te CALLs.&lt;/P&gt;&lt;P&gt;Does someone know why the if statement is skipped?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each vFileName in FileList('C:\Users\Data\QVData\Factuurgegevens\*.xlsx')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; LET vFileBaseName = SubField(Subfield('$(vFileName)', '\', -1), 'Factuurregels', 1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF $(vFileBaseName) &amp;gt; $(vIncrementalExpression) THEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL Laden_Output1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL Laden_Output2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; NEXT vFileName&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 13:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incemental-Load-difficulties/m-p/706608#M672077</guid>
      <dc:creator />
      <dc:date>2014-09-26T13:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Incemental Load difficulties</title>
      <link>https://community.qlik.com/t5/QlikView/Incemental-Load-difficulties/m-p/706609#M672078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe some quotes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF '$(vFileBaseName)' &amp;gt; '$(vIncrementalExpression)' THEN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 14:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incemental-Load-difficulties/m-p/706609#M672078</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-09-26T14:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Incemental Load difficulties</title>
      <link>https://community.qlik.com/t5/QlikView/Incemental-Load-difficulties/m-p/706610#M672079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;I tried, but unfortunately that doesn't do the trick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 14:27:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incemental-Load-difficulties/m-p/706610#M672079</guid>
      <dc:creator />
      <dc:date>2014-09-26T14:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Incemental Load difficulties</title>
      <link>https://community.qlik.com/t5/QlikView/Incemental-Load-difficulties/m-p/706611#M672080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Inka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the same problem too. Do you finally get the solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Catherine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 07:44:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incemental-Load-difficulties/m-p/706611#M672080</guid>
      <dc:creator />
      <dc:date>2015-01-12T07:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Incemental Load difficulties</title>
      <link>https://community.qlik.com/t5/QlikView/Incemental-Load-difficulties/m-p/706612#M672081</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;Actually, you don't need expansions in these expressions, so&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;"&gt;IF vFileBaseName &amp;gt; vIncrementalExpression THEN&lt;/SPAN&gt; ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should work. If it doesn't check that the two variables have the value expected. You can single step throught the script on the debugger, or add TRACE statements to your script. These will print in the reload progress screen and the in the document log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRACE &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vFileBaseName = $(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vFileBaseName);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TRACE &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vIncrementalExpression&amp;nbsp; = $(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vIncrementalExpression );&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 07:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incemental-Load-difficulties/m-p/706612#M672081</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-01-12T07:54:38Z</dc:date>
    </item>
  </channel>
</rss>

