<?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: Qlikview : Direct discovery Oracle Error maximum number of expressions in a list is 1000 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlikview-Direct-discovery-Oracle-Error-maximum-number-of/m-p/1214838#M389278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try to Enable Direct Sub Query?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jan 2017 23:54:47 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2017-01-09T23:54:47Z</dc:date>
    <item>
      <title>Qlikview : Direct discovery Oracle Error maximum number of expressions in a list is 1000</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Direct-discovery-Oracle-Error-maximum-number-of/m-p/1214835#M389275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;I am using Direct Query in QVW. when i filter &lt;SPAN style="font-size: 13.3333px;"&gt;the records &lt;/SPAN&gt;in Dashboards to below 1000 then the DIRECT Query works fine. when it exceeds the it is failing with the below error messages.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;ErrorSource: OraOLEDB, ErrorMsg: ORA-01795: maximum number of expressions in a list is 1000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;There is no IN clause or EXISTS clause in the DIRECT QUERY sql.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Please help me here.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 10:01:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Direct-discovery-Oracle-Error-maximum-number-of/m-p/1214835#M389275</guid>
      <dc:creator>sanveera</dc:creator>
      <dc:date>2017-01-09T10:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview : Direct discovery Oracle Error maximum number of expressions in a list is 1000</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Direct-discovery-Oracle-Error-maximum-number-of/m-p/1214836#M389276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Direct Discovery generates SQL statements on the fly when using the dashboard. Even if you don't have an IN-clause in the DIRECT QUERY in the load script QlikView will nevertheless create a SQL similar to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT DISTINCT SalesPersonID FROM THE_DIRECT_DISCOVERY_TABLE WHERE&lt;/P&gt;&lt;P&gt;CustomerID IN ( 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So depending on the number of values you select for your dimension you might exceed the number of elements allowed by Oracle - which is 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can turn on a feature called Sub Query for IN-clauses:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET DirectEnableSubquery='true';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then a query similar to this might be created:&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "l_partkey", SUM("l_quantity") FROM "lineitem"&lt;/P&gt;&lt;P&gt;WHERE "l_partkey" &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IN (SELECT&lt;/STRONG&gt; DISTINCT "TPCH"."dbo"."PART"."P_PARTKEY" FROM&lt;/P&gt;&lt;P&gt;"TPCH"."dbo"."PART" WHERE "TPCH"."dbo"."PART"."P_DISCOUNT_FLAG" IN (‘Y') )&lt;/P&gt;&lt;P&gt;GROUP BY "L_PARTKEY"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the literal number of values limitation can be overcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the Direct Discovery sections of the help:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/DirectDiscovery/direct-discovery-introduction.htm" style="font-size: 10pt;" title="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/DirectDiscovery/direct-discovery-introduction.htm"&gt;http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/DirectDiscovery/direct-discovery-introduction.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifically about subquery:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/DirectDiscovery/using-subqueries-direct-discovery.htm" title="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/DirectDiscovery/using-subqueries-direct-discovery.htm"&gt;Using subqueries with Direct Discovery ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 11:47:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Direct-discovery-Oracle-Error-maximum-number-of/m-p/1214836#M389276</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-09T11:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview : Direct discovery Oracle Error maximum number of expressions in a list is 1000</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Direct-discovery-Oracle-Error-maximum-number-of/m-p/1214837#M389277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still i am facing the issue. The link between DIRECT table and in-memory table based on a KeyID field. The distinct count of KeyID may go beyond 1000 in in-memory table too. if we do filter on in-memory fields, will this create this issue ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 14:29:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Direct-discovery-Oracle-Error-maximum-number-of/m-p/1214837#M389277</guid>
      <dc:creator>sanveera</dc:creator>
      <dc:date>2017-01-09T14:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview : Direct discovery Oracle Error maximum number of expressions in a list is 1000</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Direct-discovery-Oracle-Error-maximum-number-of/m-p/1214838#M389278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try to Enable Direct Sub Query?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 23:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Direct-discovery-Oracle-Error-maximum-number-of/m-p/1214838#M389278</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-09T23:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview : Direct discovery Oracle Error maximum number of expressions in a list is 1000</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Direct-discovery-Oracle-Error-maximum-number-of/m-p/1214839#M389279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes i did. Still i got the same error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 03:49:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Direct-discovery-Oracle-Error-maximum-number-of/m-p/1214839#M389279</guid>
      <dc:creator>sanveera</dc:creator>
      <dc:date>2017-01-10T03:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview : Direct discovery Oracle Error maximum number of expressions in a list is 1000</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Direct-discovery-Oracle-Error-maximum-number-of/m-p/1214840#M389280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You do have to make a data model that caters for selections that don't overrun the limitation of 1000 literal values in an IN-clause even if you use a sub query. In other words you have to tune the data model if you want to use the sub query compared to the first approach....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 03:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Direct-discovery-Oracle-Error-maximum-number-of/m-p/1214840#M389280</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-11T03:25:25Z</dc:date>
    </item>
  </channel>
</rss>

