<?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: Preceding load error in Incremental load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Preceding-load-error-in-Incremental-load/m-p/951349#M965826</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try &lt;/P&gt;&lt;P&gt;Where TimeData &amp;gt;= '$(vMax)';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 Oct 2015 07:25:01 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2015-10-11T07:25:01Z</dc:date>
    <item>
      <title>Preceding load error in Incremental load</title>
      <link>https://community.qlik.com/t5/QlikView/Preceding-load-error-in-Incremental-load/m-p/951346#M965823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,Qlikers&lt;/P&gt;&lt;P&gt;for incremental load &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after reading the data from qvd Created one variable and storing the max date in that variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like vMax=peek('Date',-1,Temp);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and after that i connected to sql server and written&amp;nbsp; presceding load some thing like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incremental:&lt;/P&gt;&lt;P&gt;LOAD *,Date(Floor( TimeData)) as Date;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM Emp&lt;/P&gt;&lt;P&gt;Where Date&amp;gt;=$(vMax);&lt;/P&gt;&lt;P&gt;but it is giving error message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ErrorSource: Microsoft OLE DB Provider for SQL Server, ErrorMsg: Invalid column name 'Date'.&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM Emp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Date&amp;gt;=9/12/2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could any one have idea about this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me&lt;/P&gt;&lt;P&gt;thanks in advanse&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;hemesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Oct 2015 07:06:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Preceding-load-error-in-Incremental-load/m-p/951346#M965823</guid>
      <dc:creator />
      <dc:date>2015-10-11T07:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding load error in Incremental load</title>
      <link>https://community.qlik.com/t5/QlikView/Preceding-load-error-in-Incremental-load/m-p/951347#M965824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vMax=peek('Date',-1,'Temp');&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // You missed single quotes for Temp&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;Incremental:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD *,Date(Floor( TimeData)) as Date;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM Emp&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where Date&amp;gt;='$(vMax)';&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // $(vMax) should be '$(vMax)'&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="line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Oct 2015 07:12:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Preceding-load-error-in-Incremental-load/m-p/951347#M965824</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-10-11T07:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding load error in Incremental load</title>
      <link>https://community.qlik.com/t5/QlikView/Preceding-load-error-in-Incremental-load/m-p/951348#M965825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;still it is showing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ErrorSource: Microsoft OLE DB Provider for SQL Server, ErrorMsg: Invalid column name 'Date'.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SQL SELECT *&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM Emp&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Where Date&amp;gt;='9/12/2015'&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P&gt;By the time of executing the records are same in qvd and &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Incremental:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD *,Date(Floor( TimeData)) as Date;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM Emp&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where Date&amp;gt;=$(vMax);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is this because of that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Oct 2015 07:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Preceding-load-error-in-Incremental-load/m-p/951348#M965825</guid>
      <dc:creator />
      <dc:date>2015-10-11T07:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding load error in Incremental load</title>
      <link>https://community.qlik.com/t5/QlikView/Preceding-load-error-in-Incremental-load/m-p/951349#M965826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try &lt;/P&gt;&lt;P&gt;Where TimeData &amp;gt;= '$(vMax)';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Oct 2015 07:25:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Preceding-load-error-in-Incremental-load/m-p/951349#M965826</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-10-11T07:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding load error in Incremental load</title>
      <link>https://community.qlik.com/t5/QlikView/Preceding-load-error-in-Incremental-load/m-p/951350#M965827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is telling you that the field Date does not exist in the table Emp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go back to your table in SQL Management Console and check the fields.&amp;nbsp; Given your load statement I think &lt;A href="https://community.qlik.com/qlik-users/120618"&gt;MRKachhiaIMP&lt;/A&gt;‌ is probably correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whatever goes into your SQL statement must execute correctly when copied and pasted into management studio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that reason, you probably need to format your vMax variable accordingly also, depending on the setup of your SQL Server, perhaps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vMax= Date(peek('Date',-1,'Temp'), 'YYYY-MM-DD hh:mm:ss.fff');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Another point of note, using Peek -1 you need to be 100% confident that the date on the last row is the one you need to load from.&amp;nbsp; If you are enforcing this with an ORDER BY in the QVD load you will be causing it to be non-optimised and it will therefore be slow anyway - kind of removing the point of an incremental load.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;This post has more on incremental loads:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;A href="http://www.quickintelligence.co.uk/qlikview-incremental-load/" title="http://www.quickintelligence.co.uk/qlikview-incremental-load/"&gt;http://www.quickintelligence.co.uk/qlikview-incremental-load/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Steve&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Oct 2015 07:41:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Preceding-load-error-in-Incremental-load/m-p/951350#M965827</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2015-10-11T07:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding load error in Incremental load</title>
      <link>https://community.qlik.com/t5/QlikView/Preceding-load-error-in-Incremental-load/m-p/951351#M965828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now i am getting thank you manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Oct 2015 07:42:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Preceding-load-error-in-Incremental-load/m-p/951351#M965828</guid>
      <dc:creator />
      <dc:date>2015-10-11T07:42:04Z</dc:date>
    </item>
  </channel>
</rss>

