<?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: limit for query where clause in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-for-query-where-clause/m-p/328376#M30325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is your DB Oracle? From what I can find, this is an Oracle limitation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;A comma-delimited list of expressions can contain no more than 1000 expressions. A comma-delimited list of sets of expressions can contain any number of sets, but each set can contain no more than 1000 expressions.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Source:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://docs.oracle.com/cd/B19306_01/server.102/b14200/expressions014.htm#i1033664"&gt;http://docs.oracle.com/cd/B19306_01/server.102/b14200/expressions014.htm#i1033664&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you must query 1000+ features, I'd do it over multiple queries and &lt;/SPAN&gt;&lt;A href="http://developers.arcgis.com/en/javascript/jssamples/query_deferred_list.html"&gt;use a deferred list to manage execution&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 May 2013 20:07:00 GMT</pubDate>
    <dc:creator>derekswingley1</dc:creator>
    <dc:date>2013-05-02T20:07:00Z</dc:date>
    <item>
      <title>limit for query where clause</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-for-query-where-clause/m-p/328372#M30321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have found that there is a limit to the count of items in the WHERE param of a query operation against a mapping and/or feature service.&amp;nbsp; This is not the returned limit param but the WHERE param of the query itself before it will generate a response.&amp;nbsp; The limit i have found is 1,000 items.&amp;nbsp; It does not matter if they are string or integer items or how long the items are; ie not a character limit but a "word" limit. I have tested increasing the Maximum Number Of Records to Return by Server param to a couple of thousand but the query operation returns a code 400 - "unable to complete query".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All postings and documentation I can find say nothing about a WHERE item limit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using ArcGIS Server v10.04.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please advise,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nat Carter&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Montana DEQ&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 21:37:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-for-query-where-clause/m-p/328372#M30321</guid>
      <dc:creator>NatCarter</dc:creator>
      <dc:date>2013-05-01T21:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: limit for query where clause</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-for-query-where-clause/m-p/328373#M30322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you have a public service we can use to reproduce this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 21:56:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-for-query-where-clause/m-p/328373#M30322</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2013-05-01T21:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: limit for query where clause</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-for-query-where-clause/m-p/328374#M30323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Do you have a public service we can use to reproduce this?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Please see the attached document for service URLs, example SQL, &amp;amp; mapping service properties.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 14:46:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-for-query-where-clause/m-p/328374#M30323</guid>
      <dc:creator>NatCarter</dc:creator>
      <dc:date>2013-05-02T14:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: limit for query where clause</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-for-query-where-clause/m-p/328375#M30324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks! I'll investigate and post back here when I figure out what/why this is happening.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 16:30:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-for-query-where-clause/m-p/328375#M30324</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2013-05-02T16:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: limit for query where clause</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-for-query-where-clause/m-p/328376#M30325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is your DB Oracle? From what I can find, this is an Oracle limitation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;A comma-delimited list of expressions can contain no more than 1000 expressions. A comma-delimited list of sets of expressions can contain any number of sets, but each set can contain no more than 1000 expressions.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Source:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://docs.oracle.com/cd/B19306_01/server.102/b14200/expressions014.htm#i1033664"&gt;http://docs.oracle.com/cd/B19306_01/server.102/b14200/expressions014.htm#i1033664&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you must query 1000+ features, I'd do it over multiple queries and &lt;/SPAN&gt;&lt;A href="http://developers.arcgis.com/en/javascript/jssamples/query_deferred_list.html"&gt;use a deferred list to manage execution&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 20:07:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-for-query-where-clause/m-p/328376#M30325</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2013-05-02T20:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: limit for query where clause</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-for-query-where-clause/m-p/328377#M30326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No kidding. Haha, that helps me out a lot. I've been going back and forth with the Server admin tweaking stuff to figure out why all our queries seem to cap out at 1000. For crying out loud.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We were able to work around this by tweaking our queries to look like&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ID IN (1, 2, ..., 999) OR ID IN (1000, 1001, ..., n)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It worked in my case.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 21:28:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-for-query-where-clause/m-p/328377#M30326</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2013-05-02T21:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: limit for query where clause</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-for-query-where-clause/m-p/328378#M30327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, that was it.&amp;nbsp; Another solution is to switch out the data sources for the service to an FGDB and there are not any query request errors or limitations other that the MaxRecordReturn of the service itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the quick help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 15:37:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-for-query-where-clause/m-p/328378#M30327</guid>
      <dc:creator>NatCarter</dc:creator>
      <dc:date>2013-05-06T15:37:53Z</dc:date>
    </item>
  </channel>
</rss>

