<?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 Incremental Load (Insert and Update) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Incremental-Load-Insert-and-Update/m-p/2515432#M105672</link>
    <description>&lt;P&gt;Hi Qlik Community,&lt;/P&gt;&lt;P&gt;I found a document outlining a basic incremental load scenario, but I'm having trouble replicating it. Getting this error;&lt;/P&gt;&lt;P&gt;OleDb error&lt;/P&gt;&lt;P&gt;Connector reply error: ErrorSource: Microsoft OLE DB Provider for SQL Server, ErrorMsg: Conversion failed when converting date and/or time from character string.&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;BR /&gt;FROM ORACLE.dbo.BalTransValuedated&lt;BR /&gt;WHERE VALUE_DATE &amp;gt;= '0'&lt;BR /&gt;AND VALUE_DATE &amp;lt; '4/23/2025 11:01:07 AM'&lt;/P&gt;&lt;DIV class=""&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6152"&gt;@Oleg_Troyansky&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22035"&gt;@marksouzacosta&lt;/a&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//Actaul Script&lt;/P&gt;&lt;P&gt;LET vQVDPath = 'D:\DailyBalances'; // Set QVD storage Directory&lt;BR /&gt;LET vExecTime = GMT();&lt;BR /&gt;SET vLastExecTime = 0 ; // resetting vLastExecTime&lt;/P&gt;&lt;P&gt;// As long as a QVD already exists, find the latest timestamp&lt;BR /&gt;// for modified records. This will be used to generate the delta set.&lt;BR /&gt;if not isnull(QVDCreateTime('$(vQVDPath)\BalTransValuedated.qvd')) then&lt;/P&gt;&lt;P&gt;LoadTime:&lt;BR /&gt;LOAD Max(VALUE_DATE) as VALUE_DATE&lt;BR /&gt;FROM $(vQVDPath)\BalTransValuedated.qvd (qvd);&lt;/P&gt;&lt;P&gt;Let vLastExecTime = Date(Peek('VALUE_DATE', 0, 'LoadTime'),'YYYY-MM-DD');&lt;BR /&gt;&lt;BR /&gt;Drop Table LoadTime;&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;BR /&gt;FROM ORACLE.dbo.BalTransValuedated&lt;BR /&gt;WHERE VALUE_DATE &amp;gt;= '$(vLastExecTime)'&lt;BR /&gt;AND VALUE_DATE &amp;lt; '$(vExecTime)';&lt;/P&gt;&lt;P&gt;// Check to see if this is the first reload. If it is, skip this step&lt;BR /&gt;if Not isnull(QvdCreateTime('$(vQVDPath)BalTransValuedated.qvd')) then&lt;BR /&gt;Concatenate (BalTransValuedated)&lt;BR /&gt;LOAD *&lt;BR /&gt;FROM $(vQVDPath)BalTransValuedated.qvd (qvd)&lt;BR /&gt;WHERE Not(Exists(AC_ID));&lt;BR /&gt;end if&lt;/P&gt;&lt;P&gt;// If data exists within table, store to QVD.&lt;BR /&gt;if NoOfRows('BalTransValuedated') &amp;gt; 0 then&lt;BR /&gt;STORE BalTransValuedated INTO $(vQVDPath)\BalTransValuedated.qvd;&lt;BR /&gt;Drop Table BalTransValuedated;&lt;BR /&gt;end if&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Apr 2025 10:52:01 GMT</pubDate>
    <dc:creator>LoKi_asterix</dc:creator>
    <dc:date>2025-04-23T10:52:01Z</dc:date>
    <item>
      <title>Incremental Load (Insert and Update)</title>
      <link>https://community.qlik.com/t5/App-Development/Incremental-Load-Insert-and-Update/m-p/2515432#M105672</link>
      <description>&lt;P&gt;Hi Qlik Community,&lt;/P&gt;&lt;P&gt;I found a document outlining a basic incremental load scenario, but I'm having trouble replicating it. Getting this error;&lt;/P&gt;&lt;P&gt;OleDb error&lt;/P&gt;&lt;P&gt;Connector reply error: ErrorSource: Microsoft OLE DB Provider for SQL Server, ErrorMsg: Conversion failed when converting date and/or time from character string.&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;BR /&gt;FROM ORACLE.dbo.BalTransValuedated&lt;BR /&gt;WHERE VALUE_DATE &amp;gt;= '0'&lt;BR /&gt;AND VALUE_DATE &amp;lt; '4/23/2025 11:01:07 AM'&lt;/P&gt;&lt;DIV class=""&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6152"&gt;@Oleg_Troyansky&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22035"&gt;@marksouzacosta&lt;/a&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//Actaul Script&lt;/P&gt;&lt;P&gt;LET vQVDPath = 'D:\DailyBalances'; // Set QVD storage Directory&lt;BR /&gt;LET vExecTime = GMT();&lt;BR /&gt;SET vLastExecTime = 0 ; // resetting vLastExecTime&lt;/P&gt;&lt;P&gt;// As long as a QVD already exists, find the latest timestamp&lt;BR /&gt;// for modified records. This will be used to generate the delta set.&lt;BR /&gt;if not isnull(QVDCreateTime('$(vQVDPath)\BalTransValuedated.qvd')) then&lt;/P&gt;&lt;P&gt;LoadTime:&lt;BR /&gt;LOAD Max(VALUE_DATE) as VALUE_DATE&lt;BR /&gt;FROM $(vQVDPath)\BalTransValuedated.qvd (qvd);&lt;/P&gt;&lt;P&gt;Let vLastExecTime = Date(Peek('VALUE_DATE', 0, 'LoadTime'),'YYYY-MM-DD');&lt;BR /&gt;&lt;BR /&gt;Drop Table LoadTime;&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;BR /&gt;FROM ORACLE.dbo.BalTransValuedated&lt;BR /&gt;WHERE VALUE_DATE &amp;gt;= '$(vLastExecTime)'&lt;BR /&gt;AND VALUE_DATE &amp;lt; '$(vExecTime)';&lt;/P&gt;&lt;P&gt;// Check to see if this is the first reload. If it is, skip this step&lt;BR /&gt;if Not isnull(QvdCreateTime('$(vQVDPath)BalTransValuedated.qvd')) then&lt;BR /&gt;Concatenate (BalTransValuedated)&lt;BR /&gt;LOAD *&lt;BR /&gt;FROM $(vQVDPath)BalTransValuedated.qvd (qvd)&lt;BR /&gt;WHERE Not(Exists(AC_ID));&lt;BR /&gt;end if&lt;/P&gt;&lt;P&gt;// If data exists within table, store to QVD.&lt;BR /&gt;if NoOfRows('BalTransValuedated') &amp;gt; 0 then&lt;BR /&gt;STORE BalTransValuedated INTO $(vQVDPath)\BalTransValuedated.qvd;&lt;BR /&gt;Drop Table BalTransValuedated;&lt;BR /&gt;end if&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 10:52:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Incremental-Load-Insert-and-Update/m-p/2515432#M105672</guid>
      <dc:creator>LoKi_asterix</dc:creator>
      <dc:date>2025-04-23T10:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load (Insert and Update)</title>
      <link>https://community.qlik.com/t5/App-Development/Incremental-Load-Insert-and-Update/m-p/2515433#M105673</link>
      <description>&lt;P&gt;It's a sql-error from your data-base because the date-filter conditions aren't correct. The specified format and syntax here:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;VALUE_DATE &amp;lt; '4/23/2025 11:01:07 AM'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;may be the right one but it could be not '0' at the same time.&lt;/P&gt;&lt;P&gt;Just comment the incremental part and the where-clause to see how this date-field is look like. After that set a few timestamp-values as condition to see if it returned no errors and the expected periods. After that you could transfer the format/syntax again to the incremental part.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 11:06:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Incremental-Load-Insert-and-Update/m-p/2515433#M105673</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-04-23T11:06:24Z</dc:date>
    </item>
  </channel>
</rss>

