<?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 Loading problem (Insert, Update Delete) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-Loading-problem-Insert-Update-Delete/m-p/1157494#M377483</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mr Wuhl thanks for your reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please spare 5 minutes to see some screen shots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the HELP to you an all community&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Sep 2016 11:19:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-09-09T11:19:32Z</dc:date>
    <item>
      <title>Incremental Loading problem (Insert, Update Delete)</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Loading-problem-Insert-Update-Delete/m-p/1157488#M377477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;This is my first post on the community although I have learn almost everything I know for Qlikview from it the last 3 years.&lt;/P&gt;&lt;P&gt;So thank you qlikview and qlikview fans for this massive knowledge offered so widely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with incremental loading script getting an error message as seen below.&lt;/P&gt;&lt;P&gt;Also I am attaching the script file I am using.&lt;/P&gt;&lt;P&gt;(the DB is SQLSERVER 2008)&lt;/P&gt;&lt;P&gt;The COSTMAIN_COSTDATE is (datetime , null) field and the select gives 2016-05-04 00:00:00.000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help provided&lt;/P&gt;&lt;P&gt;Michael M.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Script error.png" class="jive-image image-1" src="/legacyfs/online/136641_Script error.png" style="height: 402px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2016 07:52:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Loading-problem-Insert-Update-Delete/m-p/1157488#M377477</guid>
      <dc:creator />
      <dc:date>2016-09-07T07:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Loading problem (Insert, Update Delete)</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Loading-problem-Insert-Update-Delete/m-p/1157489#M377478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to access a table on a database server, you need to establish a database connection and then use a SELECT statement to load the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A LOAD statement can be used as preceding load statement on top of the SQL select, but not as a standalone statement to access the DB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2016 19:08:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Loading-problem-Insert-Update-Delete/m-p/1157489#M377478</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-07T19:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Loading problem (Insert, Update Delete)</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Loading-problem-Insert-Update-Delete/m-p/1157490#M377479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mr Wuhl&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;The database connection is on the MAIN TAB and the script runs smoothly up to the point that the variable '$(LAST_UPDATED_DATE)' gives the value on the where clause. So except from the connection I must have an incorrect load order or syntax on my script.because&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I made some changes replacing LOAD with select and I am getting a new error message (attached).&lt;/P&gt;&lt;P&gt;Probably I messed the script up.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="new_error message.png" class="jive-image image-1" src="/legacyfs/online/136835_new_error message.png" style="height: 336px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Please advice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 13:50:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Loading-problem-Insert-Update-Delete/m-p/1157490#M377479</guid>
      <dc:creator />
      <dc:date>2016-09-08T13:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Loading problem (Insert, Update Delete)</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Loading-problem-Insert-Update-Delete/m-p/1157491#M377480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Try to use the Wizard to connect.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Anyway, bellow, two videos to help you how connect to databases.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=STsYZHUoFrM" title="https://www.youtube.com/watch?v=STsYZHUoFrM"&gt;Loading ODBC Data into QlikView - YouTube&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=DTp7nrcI6G0" title="https://www.youtube.com/watch?v=DTp7nrcI6G0"&gt;QlikView - Connect and Query Data - YouTube&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please, mark the CORRECT/HELPFULL comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ricardo Gerhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 14:07:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Loading-problem-Insert-Update-Delete/m-p/1157491#M377480</guid>
      <dc:creator>Ricardo_Gerhard</dc:creator>
      <dc:date>2016-09-08T14:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Loading problem (Insert, Update Delete)</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Loading-problem-Insert-Update-Delete/m-p/1157492#M377481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does z_constmain is a SQL table? If yes, please use SQL Select instead of LOAD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 14:10:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Loading-problem-Insert-Update-Delete/m-p/1157492#M377481</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-09-08T14:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Loading problem (Insert, Update Delete)</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Loading-problem-Insert-Update-Delete/m-p/1157493#M377482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try enclosing your variable in the WHERE clause in single quotes (looks like you did this in the attached script, but can't see the single quotes in your first screenshot) and also format the variable as timestamp:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Store Last Modified Date&lt;/P&gt;&lt;P&gt;let LAST_UPDATED_DATE = Timestamp(PEEK('MaxDate',0,'LAST_UPDATED_DATE'),'YYYY-MM-DD hh:mm:ss.fff');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;COSTMAIN_COSTDATE &amp;gt; '$(LAST_UPDATED_DATE)';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 16:03:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Loading-problem-Insert-Update-Delete/m-p/1157493#M377482</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-08T16:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Loading problem (Insert, Update Delete)</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Loading-problem-Insert-Update-Delete/m-p/1157494#M377483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mr Wuhl thanks for your reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please spare 5 minutes to see some screen shots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the HELP to you an all community&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 11:19:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Loading-problem-Insert-Update-Delete/m-p/1157494#M377483</guid>
      <dc:creator />
      <dc:date>2016-09-09T11:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Loading problem (Insert, Update Delete)</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Loading-problem-Insert-Update-Delete/m-p/1157495#M377484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to add an &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exit Script;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;statement just before the line with the STORE statement (it seems this line is throwing an error, right?) and check your data model created up to this using the table viewer (CTRL-T).&lt;/P&gt;&lt;P&gt;Which tables do you see and how many rows do each table show?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2016 15:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Loading-problem-Insert-Update-Delete/m-p/1157495#M377484</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-10T15:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Loading problem (Insert, Update Delete)</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Loading-problem-Insert-Update-Delete/m-p/1157496#M377485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,&lt;/P&gt;&lt;P&gt;This was it. The 'Exit Script;'&lt;/P&gt;&lt;P&gt;Thank you very much for the precious knowledge transfer.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Very much &lt;/SPAN&gt;obliged Mr Wuhl.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 10:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Loading-problem-Insert-Update-Delete/m-p/1157496#M377485</guid>
      <dc:creator />
      <dc:date>2016-09-12T10:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Loading problem (Insert, Update Delete)</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Loading-problem-Insert-Update-Delete/m-p/1157497#M377486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to clarify, the 'exit script;' should just help you finding the cause of your issue, if you leave it in your script, your QVD is probably not getting updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I assume the issue was something else, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 15:41:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Loading-problem-Insert-Update-Delete/m-p/1157497#M377486</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-12T15:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Loading problem (Insert, Update Delete)</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Loading-problem-Insert-Update-Delete/m-p/1157498#M377487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mr Wuhl&lt;/P&gt;&lt;P&gt;I don't know why but seems to work and update the qvd after the concatenation even though the 'Exit Script' command is placed before the Replace. &lt;/P&gt;&lt;P&gt;Thanks for your time you spend helping me.&lt;/P&gt;&lt;P&gt;I ll let you know when I will give the qvw to users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;COSTMAIN_EndINVENTORYCOST_AcnTotalCost,&lt;/P&gt;
&lt;P&gt;COSTMAIN_ENDCOGS_DayHarvMedCost*/&lt;/P&gt;
&lt;P&gt;FROM COSTMAINQVD.QVD (QVD) WHERE NOT EXISTS(CostmainID);&lt;/P&gt;
&lt;P&gt;INNER JOIN&lt;/P&gt;
&lt;P&gt;select CostmainID FROM z_costmain;&lt;/P&gt;
&lt;P&gt;Exit Script;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//REPLACE OLD QVD FILE&lt;/P&gt;
&lt;P&gt;Store Incemental into &lt;C&gt;; //COSTMAINQVD.QVD(qvd);&lt;/C&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Drop Incremental table&lt;/P&gt;
&lt;P&gt;Drop Table Incemental;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 08:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Loading-problem-Insert-Update-Delete/m-p/1157498#M377487</guid>
      <dc:creator />
      <dc:date>2016-09-13T08:26:25Z</dc:date>
    </item>
  </channel>
</rss>

