<?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 error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script-error/m-p/1334115#M460479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems to work,&amp;nbsp; thank you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 May 2017 09:46:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-05-12T09:46:18Z</dc:date>
    <item>
      <title>Incremental Load script error</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script-error/m-p/1334112#M460476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to implement incremental loading from SQL to QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I built an initial load writer (QVD_Writer_Bewegungen2.qvw) that works fine and gives me a QVD-File called 'BEWEGUNGEN2'.&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;V_QLIK_BEWEGUNGEN2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM TEXAS.V_QLIK_BEWEGUNGEN2&lt;/P&gt;&lt;P&gt;WHERE&amp;nbsp;&amp;nbsp;&amp;nbsp; BEW_BEWEGUNGSTAG&amp;gt;= '$(Start_Zeitraum)' //Start of Data&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;store V_QLIK_BEWEGUNGEN2 into '..\QVD\V_QLIK_BEWEGUNGEN2.qvd' (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table V_QLIK_BEWEGUNGEN2;&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to build an incremental load writer script (QVD_Writer_Bewegungen2_incr.qvw) that updates my data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I therefore built a view (also used in the initial load) that contains:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt; - Unique ID for each line of data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AENDERUNGSDATUM&lt;/STRONG&gt; - Edit date of the line of data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA1&lt;/STRONG&gt; - Contains Data i want to analyze&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA2&lt;/STRONG&gt; - Contains Data i want to analyze&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script for the incremental Load:&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&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='hh:mm:ss';&lt;/P&gt;&lt;P&gt;SET DateFormat='DD.MM.YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='DD.MM.YYYY hh:mm:ss[.fff]';&lt;/P&gt;&lt;P&gt;SET MonthNames='Jan;Feb;Mrz;Apr;Mai;Jun;Jul;Aug;Sep;Okt;Nov;Dez';&lt;/P&gt;&lt;P&gt;SET DayNames='Mo;Di;Mi;Do;Fr;Sa;So';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLEDB CONNECT TO [...]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let Start_Zeitraum = addmonths(YearStart(AddMonths(today(),-1), -2 ),1);&amp;nbsp;&amp;nbsp;&amp;nbsp; //Start of Data&lt;/P&gt;&lt;P&gt;Let ThisExecTime = ReloadTime(); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_QLIK_BEWEGUNGEN2:&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM TEXAS.V_QLIK_BEWEGUNGEN2&lt;/P&gt;&lt;P&gt;WHERE AENDERUNGSDATUM &amp;gt;= '$(LastExecTime)'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AENDERUNGSDATUM &amp;lt; '$(ThisExecTime)'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AENDERUNGSDATUM &amp;gt;= '$(Start_Zeitraum)'&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate LOAD * FROM [..\QVD\V_QLIK_BEWEGUNGEN2.qvd] (qvd)&lt;/P&gt;&lt;P&gt;WHERE NOT EXISTS(ID);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner Join SQL SELECT ID FROM TEXAS.V_QLIK_BEWEGUNGEN2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ScriptErrorCount = 0 then &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; STORE V_QLIK_BEWEGUNGEN2 INTO '..\QVD\V_QLIK_BEWEGUNGEN2.qvd' (qvd);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let LastExecTime = ThisExecTime; &lt;/P&gt;&lt;P&gt;End If;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table V_QLIK_BEWEGUNGEN2;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But then i get a strange Error right after executing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/163114_pastedImage_4.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me out please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 08:48:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script-error/m-p/1334112#M460476</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-12T08:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load script error</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script-error/m-p/1334113#M460477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is due to the fact that your variable '$(LastExecTime)' does not have any value. You need to find and save the value for the variable just as you have done for the other two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 09:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script-error/m-p/1334113#M460477</guid>
      <dc:creator />
      <dc:date>2017-05-12T09:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load script error</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script-error/m-p/1334114#M460478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you need to have same Date format for SQL date field and variable created in QlikView&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;let Start_Zeitraum&lt;/STRONG&gt; = &lt;STRONG&gt;date(addmonths(YearStart(AddMonths(today(),-1), -2 ),1),'DD/MM/YYYY')&lt;/STRONG&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Start of Data&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Let ThisExecTime&lt;/STRONG&gt; = &lt;STRONG&gt;date(ReloadTime(),'DD/MM/YYYY')&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;to_date(to_char(&lt;/STRONG&gt;AENDERUNGSDATUM,&lt;STRONG&gt;'DD/MM/YYYY')&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;,'DD/MM/YYYY')&lt;/STRONG&gt;&lt;/SPAN&gt; &amp;gt;= &lt;STRONG&gt;to_date&lt;/STRONG&gt;('$(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Start_Zeitraum&lt;/SPAN&gt;)'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;,'DD/MM/YYYY')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;STRONG&gt;AND&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;to_date(to_char(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;AENDERUNGSDATUM,&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'DD/MM/YYYY')&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;,'DD/MM/YYYY')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&amp;lt; t&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;o_date&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'$(ThisExecTime)'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;,'DD/MM/YYYY')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 09:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script-error/m-p/1334114#M460478</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-05-12T09:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load script error</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script-error/m-p/1334115#M460479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems to work,&amp;nbsp; thank you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 09:46:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script-error/m-p/1334115#M460479</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-12T09:46:18Z</dc:date>
    </item>
  </channel>
</rss>

