<?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 script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/1650553#M730146</link>
    <description>&lt;P&gt;I think the error is due to CompletionDate which is in the format of 21/11/2019 5:06:29 PM.&lt;BR /&gt;Tried adding "LOAD TimeStamp(TimeStamp#(CompletionDate,'DD/MM/YYYY hh:mm:ss')) as CompletionDate," but it&amp;nbsp;gave an error.&amp;nbsp;Any idea?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Nov 2019 09:22:03 GMT</pubDate>
    <dc:creator>user8</dc:creator>
    <dc:date>2019-11-25T09:22:03Z</dc:date>
    <item>
      <title>Incremental Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/1650076#M730144</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I created an incremental load script however it is not adding the new (incremental) data to my QVD file. I have first connected to DB and copy the full data&amp;nbsp;to QVD file. Subsequently I load from the QVD file and only select the new data from DB to be added to the QVD file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;U&gt;Load Script&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;// Loading data from QVD&lt;BR /&gt;SRO:&lt;BR /&gt;LOAD&lt;BR /&gt;[Form Ref No],&lt;BR /&gt;[Form Name],&lt;BR /&gt;CompletionDate&lt;BR /&gt;FROM [lib://GS_Folder/SRO.qvd] (qvd);&lt;/P&gt;&lt;P&gt;// Find last modified date&lt;BR /&gt;Last_Updated_Date:&lt;BR /&gt;load max (CompletionDate) as Maxdate&lt;BR /&gt;resident SRO;&lt;/P&gt;&lt;P&gt;// Store last modified date to a variable&lt;BR /&gt;Let Last_Updated_Date=peek('Maxdate',0,'Last_Updated_Date');&lt;/P&gt;&lt;P&gt;// Delete Table SRO&lt;BR /&gt;Drop table SRO;&lt;/P&gt;&lt;P&gt;// Load new and incremental data from DB&lt;BR /&gt;LOAD&lt;BR /&gt;[Form Ref No],&lt;BR /&gt;[Form Name],&lt;BR /&gt;CompletionDate;&lt;/P&gt;&lt;P&gt;[Incremental]:&lt;BR /&gt;SELECT&lt;BR /&gt;"Form Ref No",&lt;BR /&gt;"Form Name",&lt;BR /&gt;CompletionDate&lt;BR /&gt;FROM DEA.COC.vwSROHeader where CompletionDate &amp;gt; $(Last_Updated_Date);&lt;/P&gt;&lt;P&gt;// Concatenate with QVD&lt;BR /&gt;Concatenate&lt;BR /&gt;LOAD&lt;BR /&gt;[Form Ref No],&lt;BR /&gt;[Form Name],&lt;BR /&gt;CompletionDate&lt;BR /&gt;FROM [lib://GS_Folder/SRO.qvd] (qvd);&lt;/P&gt;&lt;P&gt;// Replace old QVD file&lt;BR /&gt;Store Incremental into [lib://GS_Folder/SRO.qvd] (qvd);&lt;/P&gt;&lt;P&gt;// Drop Incremental Table&lt;BR /&gt;Drop table Incremental;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;U&gt;Load Status&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Started loading data&lt;BR /&gt;SRO &amp;lt;&amp;lt; SRO&lt;BR /&gt;(QVD (row-based) optimized)&lt;BR /&gt;Lines fetched: 1,154&lt;BR /&gt;Last_Updated_Date &amp;lt;&amp;lt; SRO&lt;BR /&gt;Lines fetched: 1&lt;BR /&gt;Incremental &amp;lt;&amp;lt; vwSROHeader&lt;BR /&gt;Lines fetched: 0&lt;BR /&gt;Incremental &amp;lt;&amp;lt; SRO&lt;BR /&gt;(QVD (row-based) optimized)&lt;BR /&gt;Lines fetched: 1,154&lt;BR /&gt;Creating search index&lt;BR /&gt;Search index creation completed successfully&lt;BR /&gt;App saved&lt;BR /&gt;Finished successfully&lt;BR /&gt;0 forced error(s)&lt;BR /&gt;0 synthetic key(s)&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;FONT color="#FF0000"&gt;Below are the 2 new records I want to add to QVD from DB&lt;/FONT&gt;&lt;/U&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Form Ref No&lt;/TD&gt;&lt;TD&gt;Form Name&lt;/TD&gt;&lt;TD&gt;CompletionDate&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;OSFT1911-00017&lt;/TD&gt;&lt;TD&gt;COC - Form&lt;/TD&gt;&lt;TD&gt;21/11/2019 5:06:29 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CHQR1911-00033&lt;/TD&gt;&lt;TD&gt;COC - Form2&lt;/TD&gt;&lt;TD&gt;21/11/2019 5:17:39 PM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is most appreciated. Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:52:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/1650076#M730144</guid>
      <dc:creator>user8</dc:creator>
      <dc:date>2024-11-16T01:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/1650553#M730146</link>
      <description>&lt;P&gt;I think the error is due to CompletionDate which is in the format of 21/11/2019 5:06:29 PM.&lt;BR /&gt;Tried adding "LOAD TimeStamp(TimeStamp#(CompletionDate,'DD/MM/YYYY hh:mm:ss')) as CompletionDate," but it&amp;nbsp;gave an error.&amp;nbsp;Any idea?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 09:22:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/1650553#M730146</guid>
      <dc:creator>user8</dc:creator>
      <dc:date>2019-11-25T09:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/1654768#M730148</link>
      <description>&lt;P&gt;Best I have is Help link for you, there is mention in there of needing to ensure you have the correct timestamp format per the backend DB, that may be where things are going wrong?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/QVD_Incremental.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/QVD_Incremental.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hopefully reviewing that may help you find the problem, if you get further info, shout back.&amp;nbsp; My post will also kick things back up in the list, so someone else may see things and be able to add something else too.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 19:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/1654768#M730148</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-12-05T19:55:56Z</dc:date>
    </item>
  </channel>
</rss>

