<?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: Error in load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-load/m-p/1122595#M891298</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code.&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;ODBC CONNECT TO AirSizing (XUserId is eKSYURFMTTKA, XPassword is MSTKcRFMTTFB);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Data_Temp:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load *&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;, if(rowno()=1,0.05* Lenght_mm+0.95*avg(Lenght_mm), Previous([ValueCurrent])) as Z1;&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;SQL select Lenght_mm From XYZ;&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;Data:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load *,if(rowno()&amp;gt;2,0.05* Lenght_mm+0.95*Z1, 0.05* Lenght_mm+0.95*Previous([ValueCurrent])) as ZX&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RESIDENT Data_temp;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DROP TABLE Data_temp;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Aug 2016 08:34:06 GMT</pubDate>
    <dc:creator>kaushiknsolanki</dc:creator>
    <dc:date>2016-08-17T08:34:06Z</dc:date>
    <item>
      <title>Error in load</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-load/m-p/1122594#M891297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am try to use a calculate field in a table, but when i try to load it , i have the follow message error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;SQL##f - SqlState: 37000, ErrorCode: 156, ErrorMsg: [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'if'.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 8pt;"&gt;Data_Temp:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;SQL select Lenght_mm, if(rowno()=1,0.05* Lenght_mm+0.95*avg(Lenght_mm), Previous([ValueCurrent])) as Z1&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My code in script is more or less this:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO AirSizing (XUserId is eKSYURFMTTKA, XPassword is MSTKcRFMTTFB);&lt;/P&gt;&lt;P&gt;Data_Temp:&lt;/P&gt;&lt;P&gt;SQL select Lenght_mm, if(rowno()=1,0.05* Lenght_mm+0.95*avg(Lenght_mm), Previous([ValueCurrent])) as Z1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;load *,if(rowno()&amp;gt;2,0.05* Lenght_mm+0.95*Z1, 0.05* Lenght_mm+0.95*Previous([ValueCurrent])) as ZX&lt;/P&gt;&lt;P&gt;RESIDENT Data_temp;&lt;/P&gt;&lt;P&gt;DROP TABLE Data_temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please what is wrong? Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-load/m-p/1122594#M891297</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error in load</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-load/m-p/1122595#M891298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code.&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;ODBC CONNECT TO AirSizing (XUserId is eKSYURFMTTKA, XPassword is MSTKcRFMTTFB);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Data_Temp:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load *&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;, if(rowno()=1,0.05* Lenght_mm+0.95*avg(Lenght_mm), Previous([ValueCurrent])) as Z1;&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;SQL select Lenght_mm From XYZ;&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;Data:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load *,if(rowno()&amp;gt;2,0.05* Lenght_mm+0.95*Z1, 0.05* Lenght_mm+0.95*Previous([ValueCurrent])) as ZX&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RESIDENT Data_temp;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DROP TABLE Data_temp;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 08:34:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-load/m-p/1122595#M891298</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-08-17T08:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error in load</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-load/m-p/1122596#M891299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(rowno()=1&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I doubt your SQL Server database supports the rowno() function. If you write SQL then make sure you write only SQL that your database server understands. Don't use Qlikview functions in SQL statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 08:39:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-load/m-p/1122596#M891299</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-17T08:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error in load</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-load/m-p/1122597#M891300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'rowno()' , 'if'&amp;nbsp; and Previous is not valid in a sql Query, those are qlikview related. Normally CASE is used in sql for if.&lt;/P&gt;&lt;P&gt;Maybe you should try to use preceding LOAD, if you not familiar With that just search in the community.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 08:39:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-load/m-p/1122597#M891300</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2016-08-17T08:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error in load</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-load/m-p/1122598#M891301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Thanks I corrected with &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Kaushik and your suggestion, so&lt;/SPAN&gt; replace the statement r&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;owno()=1&lt;/SPAN&gt;&lt;SPAN&gt;, but it not recognize "ValueCurrent". How i can replace it then?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data_Temp:&lt;/P&gt;&lt;P&gt;load *, if(IDMesurament=1,0.05* Lenght_mm+0.95*avg(Lenght_mm), Previous([ValueCurrent])) as Z1;&lt;/P&gt;&lt;P&gt;SQL SELECT Lenght_mm,IDMesurament FROM AirSizing.dbo."AC30";&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;load *,if(IDMesurament&amp;gt;2,0.05* Lenght_mm+0.95*Z1, 0.05* Lenght_mm+0.95*Previous([ValueCurrent])) as ZX&lt;/P&gt;&lt;P&gt;RESIDENT Data_temp;&lt;/P&gt;&lt;P&gt;DROP TABLE Data_temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 09:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-load/m-p/1122598#M891301</guid>
      <dc:creator />
      <dc:date>2016-08-17T09:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error in load</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-load/m-p/1122599#M891302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Data_Temp:&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load *, if(IDMesurament=1,0.05* Lenght_mm+0.95*avg(Lenght_mm), Previous([ValueCurrent])) as Z1;&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;STRONG&gt; Lenght_mm,IDMesurament&lt;/STRONG&gt; FROM AirSizing.dbo."AC30";&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;You can only do something with fields that you extract from the source. If you try to do something with a field called ValueCurrent then you first need to extract that in the SQL Select statement. You only retrieve the fields Lenght_mm and IDMesurament. Not a field ValueCurrent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 09:59:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-load/m-p/1122599#M891302</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-17T09:59:20Z</dc:date>
    </item>
  </channel>
</rss>

