<?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: Creating Incremental Load from Cache Database in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478790#M178855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would include a trace command to check that $(vUpdateDate) is formatted correctly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRACE UPDATEDATE &amp;gt;$(vUpdateDate)&amp;lt; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to use date() and /or date#() to convert to the correct format to match your database date fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally you may need to add single quotes around your where clause once the date format is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From SITE.U_GL_ACC_VIEW&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where ReceiveDateODBC &amp;gt;= '$(vUpdateDate)' ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jan 2014 20:11:00 GMT</pubDate>
    <dc:creator>Colin-Albert</dc:creator>
    <dc:date>2014-01-07T20:11:00Z</dc:date>
    <item>
      <title>Creating Incremental Load from Cache Database</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478788#M178853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create an incremental load from a Cache database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I have so far -&lt;/P&gt;&lt;P&gt;Main :&lt;/P&gt;&lt;P&gt;SET ThousandSep=',';&lt;/P&gt;&lt;P&gt;SET DecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyThousandSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyDecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyFormat='$#,##0.00;($#,##0.00)';&lt;/P&gt;&lt;P&gt;SET TimeFormat='h:mm:ss TT';&lt;/P&gt;&lt;P&gt;SET DateFormat='M/D/YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';&lt;/P&gt;&lt;P&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/P&gt;&lt;P&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;P&gt;set VSourceData = 'C:\Qlikview\Production\Data Echosystem\QVDs';&lt;/P&gt;&lt;P&gt;set VSaveQVD = 'C:\Qlikview\Production\QvIncludes';&lt;/P&gt;&lt;P&gt;Let vQVDCreateDate = QvdCreateTime('$(vSaveQVD)SunquestTAT.qvd');&lt;/P&gt;&lt;P&gt;Let vUpdateDate = Date('$(vQVDCreateDate)');&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO CSQLULAB2010 (XUserId is FIYXbPNKZaUIVCVJFH, XPassword is BFLNRJFLTSYA);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start of Incremental Load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IncrementalSunquestTAT_Load1: // Naming file or routine&lt;/P&gt;&lt;P&gt;LOAD *;&lt;/P&gt;&lt;P&gt;SQL Select *&lt;/P&gt;&lt;P&gt;From SITE.U_GL_ACC_VIEW;&lt;/P&gt;&lt;P&gt;Store IncrementalSunquestTAT_Load1&amp;nbsp; into 'C:\Qlikview\Production\Data Echosystem\QVDs\IncrementalSunquestTAT_Load1.qvd'; &lt;BR /&gt;// Storing initial load into local file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Checking load against create date &lt;/P&gt;&lt;P&gt;// I cannot get this part to work!!&lt;/P&gt;&lt;P&gt;IncrementalSunquestTAT_Load1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *;&lt;/P&gt;&lt;P&gt;SQL Select *&lt;/P&gt;&lt;P&gt;From SITE.U_GL_ACC_VIEW&lt;/P&gt;&lt;P&gt;Where ReceiveDateODBC &amp;gt;= $(vUpdateDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be immensely appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 19:45:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478788#M178853</guid>
      <dc:creator />
      <dc:date>2014-01-07T19:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Incremental Load from Cache Database</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478789#M178854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Meani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies, but i accidentally rejected your request into the HC users group. Can you submit again and i can accept it this time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 20:00:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478789#M178854</guid>
      <dc:creator />
      <dc:date>2014-01-07T20:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Incremental Load from Cache Database</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478790#M178855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would include a trace command to check that $(vUpdateDate) is formatted correctly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRACE UPDATEDATE &amp;gt;$(vUpdateDate)&amp;lt; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to use date() and /or date#() to convert to the correct format to match your database date fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally you may need to add single quotes around your where clause once the date format is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From SITE.U_GL_ACC_VIEW&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where ReceiveDateODBC &amp;gt;= '$(vUpdateDate)' ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 20:11:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478790#M178855</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-01-07T20:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Incremental Load from Cache Database</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478791#M178856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! I will give this a go.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 20:13:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478791#M178856</guid>
      <dc:creator />
      <dc:date>2014-01-07T20:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Incremental Load from Cache Database</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478792#M178857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I apologize for my lack of knowledge. I am new to QlikView. I have no idea where to put the trace command. Would this go before the where clause or after?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 20:19:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478792#M178857</guid>
      <dc:creator />
      <dc:date>2014-01-07T20:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Incremental Load from Cache Database</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478793#M178858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would put it on the line after &lt;/P&gt;&lt;P&gt;Let vUpdateDate= ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 20:23:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478793#M178858</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-01-07T20:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Incremental Load from Cache Database</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478794#M178859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 20:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478794#M178859</guid>
      <dc:creator />
      <dc:date>2014-01-07T20:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Incremental Load from Cache Database</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478795#M178860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Albert, this is the error that I am getting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 21:09:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478795#M178860</guid>
      <dc:creator />
      <dc:date>2014-01-07T21:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Incremental Load from Cache Database</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478796#M178861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Meani, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oops - no error message &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 21:16:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478796#M178861</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-01-07T21:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Incremental Load from Cache Database</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478797#M178862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;“sqlcode:&amp;lt;-146&amp;gt; Unable to convert Date input to a valid Logical Date value”&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 21:24:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478797#M178862</guid>
      <dc:creator />
      <dc:date>2014-01-07T21:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Incremental Load from Cache Database</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478798#M178863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks like the SQL query rejecting the values in your variable as an invalid date.&lt;/P&gt;&lt;P&gt;What does the trace on yourdatevariable return?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 21:32:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478798#M178863</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-01-07T21:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Incremental Load from Cache Database</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478799#M178864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Null value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 21:34:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478799#M178864</guid>
      <dc:creator />
      <dc:date>2014-01-07T21:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Incremental Load from Cache Database</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478800#M178865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A null indicates that the script is not looking up the created date from the QVD file.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My guess is that there is a slash missing from this line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vQVDCreateDate = QvdCreateTime('$(vSaveQVD)SunquestTAT.qvd');&lt;/P&gt;&lt;P&gt;Should it be&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vQVDCreateDate = QvdCreateTime('$(vSaveQVD)\SunquestTAT.qvd');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried using DEBUG mode to step through the load script line by line?&lt;/P&gt;&lt;P&gt;Click Debug in the script editor then click Step to advance line by line.&lt;/P&gt;&lt;P&gt;The centre of the screen shows the command that will be executed next and will expand any variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 21:47:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478800#M178865</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-01-07T21:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Incremental Load from Cache Database</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478801#M178866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I’ve used the debug. I will give what you are suggesting a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 21:50:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478801#M178866</guid>
      <dc:creator />
      <dc:date>2014-01-07T21:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Incremental Load from Cache Database</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478802#M178867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Albert, do you have an example of a full incremental load? I think that would be helpful for me. I am running into problems because of the way that dates are stored in Cache; also, I don’t have a primary key – so I am trying to create on in qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From 'C:\Qlikview\Production\Data Echosystem\QVDs\IncrementalSunquestTAT_Load1.qvd' (qvd)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where Not Exists (NumAccNumber,ReceiveDateODBC);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE IncrementalSunquestTAT_Load1 into 'C:\Qlikview\Production\Data Echosystem\QVDs\IncrementalSunquestTAT_Load1.qvd';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 22:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478802#M178867</guid>
      <dc:creator />
      <dc:date>2014-01-07T22:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Creating Incremental Load from Cache Database</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478803#M178868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is designed for data that is no longer being changed. The script will split the file into separate QVD's for each month. These can be loaded using a wildcard&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tran:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; load * from TRAN_*.qvd (qvd) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file will need updating to add your database connections and set the correct file paths for your environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your has old records that can still be modified then a different approach that checks for deletions and updates wityhin the existing data must be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Colin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 22:50:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Incremental-Load-from-Cache-Database/m-p/478803#M178868</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-01-07T22:50:51Z</dc:date>
    </item>
  </channel>
</rss>

