<?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 Cannot LOAD from ODBC Source in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cannot-LOAD-from-ODBC-Source/m-p/1655703#M729247</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am trying to load data from ODBC source, like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;CASA_Paqueteria:
LOAD num_cobo, fec_entr;
SQL select distinct c.num_cobo,a.fec_entr
from cboo_cobo c
join cboo_guias b on (b.num_cobo = c.num_cobo)
join cboo_paqueteria a on (a.num_guiacom = b.num_guiacom)
where c.fec_entr &amp;gt;= '2018-01-01';&lt;/LI-CODE&gt;&lt;P&gt;When I try to load the QV Script, I am getting an error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Field not found - &amp;lt;num_cobo&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SQL select distinct c.num_cobo,a.fec_entr&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;from cboo_cobo c&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;join cboo_guias b on (b.num_cobo = c.num_cobo)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;join cboo_paqueteria a on (a.num_guiacom = b.num_guiacom)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;where c.fec_entr &amp;gt;= '2018-01-01'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;However, if I try the SQL code directly on the database, I do get valid data.&lt;/P&gt;&lt;P&gt;I am sure the ODBC source is pointed correctly, as I only have one database. Things I've tried:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Removing DISTINCT from the SQL&lt;/LI&gt;&lt;LI&gt;Quoting the field names, i,.e., LOAD "num_cobo", "fec_entr";&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;However, the error persists. What else can I do?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Eduardo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:44:36 GMT</pubDate>
    <dc:creator>eadbhard</dc:creator>
    <dc:date>2024-11-16T01:44:36Z</dc:date>
    <item>
      <title>Cannot LOAD from ODBC Source</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-LOAD-from-ODBC-Source/m-p/1655703#M729247</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am trying to load data from ODBC source, like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;CASA_Paqueteria:
LOAD num_cobo, fec_entr;
SQL select distinct c.num_cobo,a.fec_entr
from cboo_cobo c
join cboo_guias b on (b.num_cobo = c.num_cobo)
join cboo_paqueteria a on (a.num_guiacom = b.num_guiacom)
where c.fec_entr &amp;gt;= '2018-01-01';&lt;/LI-CODE&gt;&lt;P&gt;When I try to load the QV Script, I am getting an error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Field not found - &amp;lt;num_cobo&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SQL select distinct c.num_cobo,a.fec_entr&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;from cboo_cobo c&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;join cboo_guias b on (b.num_cobo = c.num_cobo)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;join cboo_paqueteria a on (a.num_guiacom = b.num_guiacom)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;where c.fec_entr &amp;gt;= '2018-01-01'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;However, if I try the SQL code directly on the database, I do get valid data.&lt;/P&gt;&lt;P&gt;I am sure the ODBC source is pointed correctly, as I only have one database. Things I've tried:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Removing DISTINCT from the SQL&lt;/LI&gt;&lt;LI&gt;Quoting the field names, i,.e., LOAD "num_cobo", "fec_entr";&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;However, the error persists. What else can I do?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Eduardo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:44:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-LOAD-from-ODBC-Source/m-p/1655703#M729247</guid>
      <dc:creator>eadbhard</dc:creator>
      <dc:date>2024-11-16T01:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot LOAD from ODBC Source</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-LOAD-from-ODBC-Source/m-p/1655704#M729248</link>
      <description>&lt;P&gt;I found the answer. I needed to write the field names in all caps in the LOAD, like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;CASA_Paqueteria:
LOAD NUM_COBO, FEC_ENTR;
SQL select distinct c.num_cobo,a.fec_entr
from cboo_cobo c
join cboo_guias b on (b.num_cobo = c.num_cobo)
join cboo_paqueteria a on (a.num_guiacom = b.num_guiacom)
where c.fec_entr &amp;gt;= '2018-01-01';&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Thanks,&lt;/P&gt;&lt;P&gt;-Eduardo&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 00:13:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-LOAD-from-ODBC-Source/m-p/1655704#M729248</guid>
      <dc:creator>eadbhard</dc:creator>
      <dc:date>2019-12-10T00:13:50Z</dc:date>
    </item>
  </channel>
</rss>

