<?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: &amp;quot;Direct Query Failed&amp;quot; Error using Direct Discovery in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/quot-Direct-Query-Failed-quot-Error-using-Direct-Discovery/m-p/660318#M240809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you ever solve this issue?&lt;/P&gt;&lt;P&gt;Do anyone else have a suggestion for a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran into the same problem yesterday when trying to connect an Oracle database with ODBC. Reading data in the script works fine, but 'Database connection failed' shoes on all objects where I try calculate a measure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll update this post if I find something that solves this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Vegar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Oct 2014 21:26:06 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2014-10-08T21:26:06Z</dc:date>
    <item>
      <title>"Direct Query Failed" Error using Direct Discovery</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Direct-Query-Failed-quot-Error-using-Direct-Discovery/m-p/660314#M240805</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;I am using &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;QV 11.2 SR7 version client. Using the Direct Discovery feature, I am trying to fetch data from SAP HANA database(Calculation View) using ODBC connection. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;So my script reads like below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;&lt;SPAN style="color: #3366ff;"&gt;ODBC CONNECT32 TO&lt;/SPAN&gt; HDB;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;DIRECT QUERY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;DIMENSION&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SALESMANNAME,&lt;/P&gt;&lt;P&gt;COUNTRYNAME,&lt;/P&gt;&lt;P&gt;REGIONNAME,&lt;/P&gt;&lt;P&gt;AREANAME,&lt;/P&gt;&lt;P&gt;OUTLETGRPNAME,&lt;/P&gt;&lt;P&gt;TEOUTLETTYPECODE,&lt;/P&gt;&lt;P&gt;OUTLETTYPENAME&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;MEASURE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;CALLFREQ,&lt;/P&gt;&lt;P&gt;NO_STORES&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"_SYS_BIC"."CPG.dra/Z_CA_DIST_OUTLET_COUNT";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This all works fine.&lt;/P&gt;&lt;P&gt;However when I create a bar chart or straight table with any of the above mentioned Dimensions and Expressions,&lt;/P&gt;&lt;P&gt;it just displays an error message saying &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"Database connection failed" or if I create a table box with any of the Dimension,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;it gives error as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"Direct Query Failed".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone come across similar errors?&lt;BR /&gt;Your help and inputs are highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Sabal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 10:13:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Direct-Query-Failed-quot-Error-using-Direct-Discovery/m-p/660314#M240805</guid>
      <dc:creator />
      <dc:date>2014-08-27T10:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: "Direct Query Failed" Error using Direct Discovery</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Direct-Query-Failed-quot-Error-using-Direct-Discovery/m-p/660315#M240806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Sabal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 13:08:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Direct-Query-Failed-quot-Error-using-Direct-Discovery/m-p/660315#M240806</guid>
      <dc:creator />
      <dc:date>2014-08-27T13:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: "Direct Query Failed" Error using Direct Discovery</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Direct-Query-Failed-quot-Error-using-Direct-Discovery/m-p/660316#M240807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sabal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you able to find the solution for this. Facing the same issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alvin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 02:13:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Direct-Query-Failed-quot-Error-using-Direct-Discovery/m-p/660316#M240807</guid>
      <dc:creator>alvinford</dc:creator>
      <dc:date>2014-09-03T02:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: "Direct Query Failed" Error using Direct Discovery</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Direct-Query-Failed-quot-Error-using-Direct-Discovery/m-p/660317#M240808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;bump.&amp;nbsp; Same issue here.&amp;nbsp; Connecting to SQL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 16:54:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Direct-Query-Failed-quot-Error-using-Direct-Discovery/m-p/660317#M240808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-03T16:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: "Direct Query Failed" Error using Direct Discovery</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Direct-Query-Failed-quot-Error-using-Direct-Discovery/m-p/660318#M240809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you ever solve this issue?&lt;/P&gt;&lt;P&gt;Do anyone else have a suggestion for a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran into the same problem yesterday when trying to connect an Oracle database with ODBC. Reading data in the script works fine, but 'Database connection failed' shoes on all objects where I try calculate a measure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll update this post if I find something that solves this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Vegar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 21:26:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Direct-Query-Failed-quot-Error-using-Direct-Discovery/m-p/660318#M240809</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2014-10-08T21:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: "Direct Query Failed" Error using Direct Discovery</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Direct-Query-Failed-quot-Error-using-Direct-Discovery/m-p/660319#M240810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you get reply on this? Could you share the response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 23:25:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Direct-Query-Failed-quot-Error-using-Direct-Discovery/m-p/660319#M240810</guid>
      <dc:creator>hirenp0904</dc:creator>
      <dc:date>2014-11-04T23:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: "Direct Query Failed" Error using Direct Discovery</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Direct-Query-Failed-quot-Error-using-Direct-Discovery/m-p/660320#M240811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In&amp;nbsp; my case the issue disappeared when I changed my where statement. I had a date in it, nu when I changed it to a&amp;nbsp; Char I had no problem with it anymore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The strange part&amp;nbsp; is that the original query worked if I ran it as a SQL select statement, but not direct query.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 05:14:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Direct-Query-Failed-quot-Error-using-Direct-Discovery/m-p/660320#M240811</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2014-11-05T05:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: "Direct Query Failed" Error using Direct Discovery</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Direct-Query-Failed-quot-Error-using-Direct-Discovery/m-p/660321#M240812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry guys...&lt;BR /&gt;I still did not find the solution for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 17:39:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Direct-Query-Failed-quot-Error-using-Direct-Discovery/m-p/660321#M240812</guid>
      <dc:creator />
      <dc:date>2014-11-14T17:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: "Direct Query Failed" Error using Direct Discovery</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Direct-Query-Failed-quot-Error-using-Direct-Discovery/m-p/660322#M240813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same issue.. anyone got a fix?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 21:55:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Direct-Query-Failed-quot-Error-using-Direct-Discovery/m-p/660322#M240813</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2015-07-09T21:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: "Direct Query Failed" Error using Direct Discovery</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Direct-Query-Failed-quot-Error-using-Direct-Discovery/m-p/660323#M240814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The same problem here.&lt;/P&gt;&lt;P&gt;QV version - 11.20.12904.0 SR12 x64&lt;/P&gt;&lt;P&gt;Cloudera ODBC Driver for Hive - 2.05.16.1005&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 15:09:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Direct-Query-Failed-quot-Error-using-Direct-Discovery/m-p/660323#M240814</guid>
      <dc:creator />
      <dc:date>2015-12-10T15:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: "Direct Query Failed" Error using Direct Discovery</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Direct-Query-Failed-quot-Error-using-Direct-Discovery/m-p/1589774#M443459</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I ran into the same issue with SQL Server. In the script part, setting the following parameter solved the issue for me :&lt;/P&gt;&lt;P&gt;SET DirectEnableSubquery=true;&lt;/P&gt;&lt;P&gt;Here is the doc explaining what this parameter does : &lt;A href="https://help.qlik.com/en-US/sense/April2019/Subsystems/Hub/Content/Sense_Hub/DirectDiscovery/using-subqueries-direct-discovery.htm" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense/April2019/Subsystems/Hub/Content/Sense_Hub/DirectDiscovery/using-subqueries-direct-discovery.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jun 2019 10:17:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Direct-Query-Failed-quot-Error-using-Direct-Discovery/m-p/1589774#M443459</guid>
      <dc:creator>Sarye</dc:creator>
      <dc:date>2019-06-09T10:17:13Z</dc:date>
    </item>
  </channel>
</rss>

