<?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: Incremental Load with Replace - unexpected behavior in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-Load-with-Replace-unexpected-behavior/m-p/38707#M785550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ended up getting working based on the the following post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/144830"&gt;Concatenate Load Where New ID (Not Exists)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by adding a temporary variable, this fixed it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Let baseFile = 'skinnyBase.qvd';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Let updateFile = 'skinnyUpdate.qvd';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;UDATA:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load timestamp, Result,&amp;nbsp; &lt;STRONG&gt;timestamp as tsTMP&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;from '$(updateFile)' (qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Concatenate(UDATA)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load timestamp, Result from&amp;nbsp; '$(baseFile)' (qvd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;where not exists(&lt;STRONG&gt;tsTMP, timestamp)&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;DROP Field tsTMP;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Mar 2018 13:21:03 GMT</pubDate>
    <dc:creator>exfosteve</dc:creator>
    <dc:date>2018-03-05T13:21:03Z</dc:date>
    <item>
      <title>Incremental Load with Replace - unexpected behavior</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-with-Replace-unexpected-behavior/m-p/38702#M785545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some behavior I'm not expecting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing an incremental load, and the common field is timestamp which I have stored as a number (only 1 entry exists '43149').&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I don't use the where clause, the concatenation works fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(INCDATA)&lt;/P&gt;&lt;P&gt;LOAD * from '$(outputFile)' (qvd) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(INCDATA)&lt;/P&gt;&lt;P&gt;LOAD * from '$(outputFile)' (qvd) &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where text(timestamp) &amp;lt;&amp;gt; '43159';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(INCDATA)&lt;/P&gt;&lt;P&gt;LOAD * from '$(outputFile)' (qvd) &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;where not Exists(timestamp);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any Ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-with-Replace-unexpected-behavior/m-p/38702#M785545</guid>
      <dc:creator>exfosteve</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load with Replace - unexpected behavior</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-with-Replace-unexpected-behavior/m-p/38703#M785546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the format of the timestamp in both the tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 16:36:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-with-Replace-unexpected-behavior/m-p/38703#M785546</guid>
      <dc:creator>krishnacbe</dc:creator>
      <dc:date>2018-03-02T16:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load with Replace - unexpected behavior</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-with-Replace-unexpected-behavior/m-p/38704#M785547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did floor(timestamp,1) prior to the incremental load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 17:02:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-with-Replace-unexpected-behavior/m-p/38704#M785547</guid>
      <dc:creator>exfosteve</dc:creator>
      <dc:date>2018-03-02T17:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load with Replace - unexpected behavior</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-with-Replace-unexpected-behavior/m-p/38705#M785548</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;can you show the script, especially when you first load your field timestamp ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 17:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-with-Replace-unexpected-behavior/m-p/38705#M785548</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-03-02T17:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load with Replace - unexpected behavior</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-with-Replace-unexpected-behavior/m-p/38706#M785549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you go. I also included the 2 QVD Files&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 17:57:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-with-Replace-unexpected-behavior/m-p/38706#M785549</guid>
      <dc:creator>exfosteve</dc:creator>
      <dc:date>2018-03-02T17:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load with Replace - unexpected behavior</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-with-Replace-unexpected-behavior/m-p/38707#M785550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ended up getting working based on the the following post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/144830"&gt;Concatenate Load Where New ID (Not Exists)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by adding a temporary variable, this fixed it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Let baseFile = 'skinnyBase.qvd';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Let updateFile = 'skinnyUpdate.qvd';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;UDATA:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load timestamp, Result,&amp;nbsp; &lt;STRONG&gt;timestamp as tsTMP&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;from '$(updateFile)' (qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Concatenate(UDATA)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load timestamp, Result from&amp;nbsp; '$(baseFile)' (qvd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;where not exists(&lt;STRONG&gt;tsTMP, timestamp)&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;DROP Field tsTMP;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2018 13:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-with-Replace-unexpected-behavior/m-p/38707#M785550</guid>
      <dc:creator>exfosteve</dc:creator>
      <dc:date>2018-03-05T13:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load with Replace - unexpected behavior</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-with-Replace-unexpected-behavior/m-p/38708#M785551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve, it is working for me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with the where not exists, it is concatenating and removing correctly the value &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;43159 read from the first table.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2018 14:10:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-with-Replace-unexpected-behavior/m-p/38708#M785551</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-03-05T14:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load with Replace - unexpected behavior</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-with-Replace-unexpected-behavior/m-p/38709#M785552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what version are you using?&amp;nbsp; I'm running 11 SR17.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2018 14:12:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-with-Replace-unexpected-behavior/m-p/38709#M785552</guid>
      <dc:creator>exfosteve</dc:creator>
      <dc:date>2018-03-05T14:12:11Z</dc:date>
    </item>
  </channel>
</rss>

