<?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: where not exists problem in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/where-not-exists-problem/m-p/2005899#M83236</link>
    <description>&lt;P&gt;I think there are various causes possible, for example the qvd with the historic data is empty (previous storing wasn't successful, other processes access the qvd, too and/or are changing the content, the load runs into an error (any ERRORMODE set ?), something strange within your storage (restoring old data, whatever), ... or there are other loads in beforehand which load this id-field already (exists is only field-relevant and not field within a table).&lt;/P&gt;
&lt;P&gt;The document-log should make these things obvious. To make some checks easier you may include some TRACE statement which count the number of records from the various sources and/or loads and/or storing any variable-values which might be in use in loops or to branch into different versions and similar stuff. Adding a timestamp-information to the log-filename would be useful to compare multiple log-files (otherwise they would be overwritten).&lt;/P&gt;
&lt;P&gt;- Marcus&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Nov 2022 13:27:32 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2022-11-17T13:27:32Z</dc:date>
    <item>
      <title>where not exists problem</title>
      <link>https://community.qlik.com/t5/App-Development/where-not-exists-problem/m-p/2005836#M83229</link>
      <description>&lt;P&gt;hi everyone,&lt;/P&gt;
&lt;P&gt;i'm in need of some dire help.&lt;/P&gt;
&lt;P&gt;the problem arises when we use "where not exists" for incremental load purposes.&lt;/P&gt;
&lt;P&gt;we have one qvd with the fields id and assignee pattern.&lt;/P&gt;
&lt;P&gt;something of this sort.&lt;/P&gt;
&lt;TABLE width="316"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;id&lt;/TD&gt;
&lt;TD width="252"&gt;assignee_pattern&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;1.assignee 1, 2. assignee 2, 3. assignee 1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;TD&gt;1.assignee 2, 2. assignee 1, 3. assignee 2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;TD&gt;1.assignee 4, 2. assignee 5, 3. assignee 1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;4&lt;/TD&gt;
&lt;TD&gt;1.assignee 5, 2. assignee 4, 3. assignee 2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;5&lt;/TD&gt;
&lt;TD&gt;1.assignee 2, 2. assignee 3, 3. assignee 4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;6&lt;/TD&gt;
&lt;TD&gt;1.assignee 7, 2. assignee 8, 3. assignee 9&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;our incremental load takes this original table,&lt;/P&gt;
&lt;P&gt;loads records that were updated since yesterday and then uses :&lt;/P&gt;
&lt;P&gt;CONCATENATE (assignee_pattern)&lt;BR /&gt;LOAD *&lt;BR /&gt;FROM [lib://$(vFolder_Connection)/$(vEnv)/assignee_pattern.qvd]&lt;BR /&gt;(qvd)&lt;BR /&gt;WHERE NOT Exists(id);&lt;/P&gt;
&lt;P&gt;we're experiencing erratic behavior,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sometime it works just fine and at other times it drops all the original data and keeps only the new records.&lt;/P&gt;
&lt;P&gt;we're really stomped and would appreciate all the help we could get.&lt;/P&gt;
&lt;P&gt;many thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 11:40:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/where-not-exists-problem/m-p/2005836#M83229</guid>
      <dc:creator>Ori</dc:creator>
      <dc:date>2022-11-17T11:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: where not exists problem</title>
      <link>https://community.qlik.com/t5/App-Development/where-not-exists-problem/m-p/2005846#M83230</link>
      <description>&lt;P&gt;It's quite hard to guess what the problem might be, but I'd suggest investigating the "loads records that were updated since yesterday" aspect. That sounds like the most likely point of failure. &lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 12:03:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/where-not-exists-problem/m-p/2005846#M83230</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-11-17T12:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: where not exists problem</title>
      <link>https://community.qlik.com/t5/App-Development/where-not-exists-problem/m-p/2005899#M83236</link>
      <description>&lt;P&gt;I think there are various causes possible, for example the qvd with the historic data is empty (previous storing wasn't successful, other processes access the qvd, too and/or are changing the content, the load runs into an error (any ERRORMODE set ?), something strange within your storage (restoring old data, whatever), ... or there are other loads in beforehand which load this id-field already (exists is only field-relevant and not field within a table).&lt;/P&gt;
&lt;P&gt;The document-log should make these things obvious. To make some checks easier you may include some TRACE statement which count the number of records from the various sources and/or loads and/or storing any variable-values which might be in use in loops or to branch into different versions and similar stuff. Adding a timestamp-information to the log-filename would be useful to compare multiple log-files (otherwise they would be overwritten).&lt;/P&gt;
&lt;P&gt;- Marcus&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 13:27:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/where-not-exists-problem/m-p/2005899#M83236</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-11-17T13:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: where not exists problem</title>
      <link>https://community.qlik.com/t5/App-Development/where-not-exists-problem/m-p/2006111#M83262</link>
      <description>&lt;P&gt;Whenever a solution appears to be working fine one day and being erratic the other day, it's usually indicative that the script itself is fine, but the data flowing through is behaving different from your assumptions. You need to make sure you understand the data and how it's being updated. The final solution might be an addition to the script to handle some exceptional case or feedback to the source system to fix an issue.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 20:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/where-not-exists-problem/m-p/2006111#M83262</guid>
      <dc:creator>oskartoivonen</dc:creator>
      <dc:date>2022-11-17T20:55:47Z</dc:date>
    </item>
  </channel>
</rss>

