<?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 error when loading through ODBC in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/error-when-loading-through-ODBC/m-p/979351#M334444</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Per student per schoolyear we add a new record. This record contains&amp;nbsp; (among toher fields) the date of arrival.&lt;/P&gt;&lt;P&gt;Mostly date of arrival equals the start of the schoolyear.&lt;/P&gt;&lt;P&gt;For a report I need to have per student the first date of arrival.&lt;/P&gt;&lt;P&gt;Data is loaded through an ODBC connection from a SQL-server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use this script :&lt;/P&gt;&lt;P&gt;FirstDayOfArrival :&lt;/P&gt;&lt;P&gt;Load Key_Studentnumber,&lt;/P&gt;&lt;P&gt;Min(DateOfArrival) as FirstDayOfArrival Group By Key_Studentnumber;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT DateOfArrival,&lt;/P&gt;&lt;P&gt;&amp;nbsp; DepartmentCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Studentnumber as Key_Studentnumber&lt;/P&gt;&lt;P&gt;FROM CompDB.dbo.Students;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't get an error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I want to add the departmentcode for example, I get an error saying : ODBC read failed SQL Select DateOfArrival ......(rest of SQL script)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script that gives error&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;FirstDayOfArrival :&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Load Key_Studentnumber,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;DepartmentCode,,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Min(DateOfArrival) as FirstDayOfArrival Group By Key_Studentnumber;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;SQL SELECT DateOfArrival,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; DepartmentCode,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; Studentnumber as Key_Studentnumber&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;FROM CompDB.dbo.Students;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I have to change ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Aug 2015 07:58:10 GMT</pubDate>
    <dc:creator>curiousfellow</dc:creator>
    <dc:date>2015-08-24T07:58:10Z</dc:date>
    <item>
      <title>error when loading through ODBC</title>
      <link>https://community.qlik.com/t5/QlikView/error-when-loading-through-ODBC/m-p/979351#M334444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Per student per schoolyear we add a new record. This record contains&amp;nbsp; (among toher fields) the date of arrival.&lt;/P&gt;&lt;P&gt;Mostly date of arrival equals the start of the schoolyear.&lt;/P&gt;&lt;P&gt;For a report I need to have per student the first date of arrival.&lt;/P&gt;&lt;P&gt;Data is loaded through an ODBC connection from a SQL-server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use this script :&lt;/P&gt;&lt;P&gt;FirstDayOfArrival :&lt;/P&gt;&lt;P&gt;Load Key_Studentnumber,&lt;/P&gt;&lt;P&gt;Min(DateOfArrival) as FirstDayOfArrival Group By Key_Studentnumber;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT DateOfArrival,&lt;/P&gt;&lt;P&gt;&amp;nbsp; DepartmentCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Studentnumber as Key_Studentnumber&lt;/P&gt;&lt;P&gt;FROM CompDB.dbo.Students;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't get an error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I want to add the departmentcode for example, I get an error saying : ODBC read failed SQL Select DateOfArrival ......(rest of SQL script)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script that gives error&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;FirstDayOfArrival :&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Load Key_Studentnumber,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;DepartmentCode,,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Min(DateOfArrival) as FirstDayOfArrival Group By Key_Studentnumber;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;SQL SELECT DateOfArrival,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; DepartmentCode,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; Studentnumber as Key_Studentnumber&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;FROM CompDB.dbo.Students;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I have to change ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 07:58:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-when-loading-through-ODBC/m-p/979351#M334444</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2015-08-24T07:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: error when loading through ODBC</title>
      <link>https://community.qlik.com/t5/QlikView/error-when-loading-through-ODBC/m-p/979352#M334445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like you have two commas behind DepartmentCode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script that gives error&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt;FirstDayOfArrival :&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt;Load Key_Studentnumber,&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt;DepartmentCode,,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;--- too many commas&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt;Min(DateOfArrival) as FirstDayOfArrival Group By Key_Studentnumber;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 08:13:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-when-loading-through-ODBC/m-p/979352#M334445</guid>
      <dc:creator>quwok</dc:creator>
      <dc:date>2015-08-24T08:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: error when loading through ODBC</title>
      <link>https://community.qlik.com/t5/QlikView/error-when-loading-through-ODBC/m-p/979353#M334446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with a resident load&lt;/P&gt;&lt;P&gt;FirstDayOfArrival :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT DateOfArrival,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; DepartmentCode,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Studentnumber as Key_Studentnumber&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM CompDB.dbo.Students;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;final:&lt;/P&gt;&lt;P&gt;Load Key_Studentnumber,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DepartmentCode, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Min(DateOfArrival) as FirstDayOfArrival&lt;/P&gt;&lt;P&gt;Resident FirstDayOfArrival&lt;/P&gt;&lt;P&gt; Group By Key_Studentnumber;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; drop Table FirstDayOfArrival;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 08:16:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-when-loading-through-ODBC/m-p/979353#M334446</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-08-24T08:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: error when loading through ODBC</title>
      <link>https://community.qlik.com/t5/QlikView/error-when-loading-through-ODBC/m-p/979354#M334447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All non-aggregated fields need to be in the group by (and remove the extra comma):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FirstDayOfArrival :&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load Key_Studentnumber,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DepartmentCode,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Min(DateOfArrival) as FirstDayOfArrival &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Group By Key_Studentnumber, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;DepartmentCode;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT DateOfArrival,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; DepartmentCode,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Studentnumber as Key_Studentnumber&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM CompDB.dbo.Students;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 08:23:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-when-loading-through-ODBC/m-p/979354#M334447</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-08-24T08:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: error when loading through ODBC</title>
      <link>https://community.qlik.com/t5/QlikView/error-when-loading-through-ODBC/m-p/979355#M334448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnx to all for your quick response. I tried jonathans's script and that worked. I will look at the others too.&lt;/P&gt;&lt;P&gt;The double comma was a typo &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" /&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Strange that all the other fields have to be in the group by&lt;/P&gt;&lt;P&gt;I want to load much more fields from that table, but when this is necessary I think I use an extra table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 08:55:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-when-loading-through-ODBC/m-p/979355#M334448</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2015-08-24T08:55:21Z</dc:date>
    </item>
  </channel>
</rss>

