<?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: Query Limit ? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-limit/m-p/489808#M45530</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You're most likely running into the get size limit.&amp;nbsp; You're where clause is being written as a param in the call, so it's probably blowing up the url, passing in a partial where.&amp;nbsp; Can't remember what the size is off the top of my head, but it's around a couple thousand.&amp;nbsp; If you can force the call to switch to post you'll clear that limit.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course, I don't know of a way to specify in the JSAPI query class how to switch to post, or if it does it automatically, but I would recommend sticking with the RESTful services, they're much easier to work with in general.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Nov 2010 02:12:08 GMT</pubDate>
    <dc:creator>MichaelRollins</dc:creator>
    <dc:date>2010-11-03T02:12:08Z</dc:date>
    <item>
      <title>Query Limit ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-limit/m-p/489804#M45526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am doing a large query and the esri js api is crashing on me..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tested my where clause in ArcMap and it works but its not working in the JS API because of its size / length (i believe)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is a dump of my where clause&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
SWISPIN IN ('18388911.-1-53.12','1824003.-1-99','18200012.-1-35.21','1824005.-1-53.2','1824005.-1-3','18348912.-1-51','18348912.-1-59.2','18348911.-1-23.2','1824005.-1-24','18240016.-1-8','FLAG','18388911.-1-36.11','18388910.-1-7.1','1824004.-1-10','FLAG','18240016.-1-21.1','1824003.-1-99','18240016.-1-23','1824003.-1-16.2','1824004.-1-23.2','1824001.-1-10.112','1824001.-1-10.12','FLAG','18428925.-1-28.2','1824004.-1-3.12','18240020.-1-98.21','1844002.-2-16.12','FLAG','FLAG','1824005.-1-6','1824005.-1-39.2','1824005.-1-13','1824003.-1-22','1824003.-1-128','1824002.-1-38','1824003.-1-100','1842899.17-1-3','1844001.-1-51','FLAG','18348910.-1-28.113','FLAG','18240013.-1-113.2','1824003.-1-6.2','1842898.-1-45','FLAG','1824005.-1-11.12','1824006.-1-60.2','1824004.-1-35','1832893.-1-13','1844001.-1-35','1824005.-1-144','18268915.-1-13.12','1842899.17-1-15','1838898.-1-8.12','18240014.-1-39','FLAG','FLAG','1824003.-1-110','1824001.-1-10.211','18348910.-1-24.2','1824005.-1-37','1824005.-1-52.2','18240016.-1-2','1824004.-1-9','18348912.-1-45','FLAG','1824005.-1-29.1','FLAG','1824004.-1-1.11','1824004.-1-11','FLAG','1824004.-1-19.1','1824005.-1-135','FLAG','1824005.-1-42.2','18348912.-1-65.1','FLAG','18440010.-1-9.111','18240017.-1-22','18240017.-1-16.121','1824006.-1-62.2','1824007.-1-94','1824003.-1-24','1824004.-1-27.2','1824005.-1-20','FLAG','18348910.-1-24.1','FLAG','18240020.-1-16','18348912.-1-66.111','18428925.-1-7','1824003.-1-109.1','1824005.-1-135','1844006.-1-19.2','1824003.-1-101','1824003.-1-101','18348912.-1-50.2','FLAG','18348911.-1-23.1','18240020.-2-51','18240020.-2-55.12','18348911.-1-22','1824004.-1-7','18368919.-1-22.2','18388911.-1-49.12','18240014.-1-40.1','18240017.-1-16.121','1824005.-1-22.1','1824005.-1-36.12','1844001.-1-49','1824006.-1-60.1','1824003.-1-16.1','1826896.-1-59','1824003.-1-109.2','18348910.-1-15.2','18240019.-1-42','FLAG','FLAG','1824005.-1-36.2','1824005.-1-36.114','1844001.-1-40','1824003.-1-129','18428925.-1-28.2','1824004.-1-20.1','FLAG','FLAG','1824002.-1-29.1','1824005.-1-2','FLAG','1824005.-1-9.12','1824002.-1-34','1824003.-1-25.1','FLAG','1824003.-1-93','18348912.-1-59.112','1824005.-1-52.12','1844001.-1-50','18348912.-1-52','1824005.-1-29.2','18348911.-1-21','1824006.-1-8','1824005.-1-137','1824003.-1-27','18440012.-1-25.1','1824005.-1-12.1','18200012.-1-48','18240016.-1-19.2','1842898.-1-52','FLAG','FLAG','1824004.-1-36','1824006.-1-12.2','1824006.-1-56','FLAG','1824002.-1-37','1824003.-1-102','1824005.-1-17.2','1824002.-1-28.2','18388910.-1-5.1','1824003.-1-15','18388911.-1-50.2','18348911.-1-17','18348910.-1-23','18368931.-1-108.12')
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes its long, but its really only 165 properties. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to Firebug and my own debugging the query is not even being sent to the server, it dies on execute() but works when I use a small length where clause.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Right now i get a "Type error: io is undefined" error from the ESRI JS file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a limit on the where clause length?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Drew&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 17:08:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-limit/m-p/489804#M45526</guid>
      <dc:creator>Drew</dc:creator>
      <dc:date>2010-10-27T17:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Query Limit ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-limit/m-p/489805#M45527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Since your query gets tacked on to the URL, and browsers impose a limit on the size of URLs for security purposes, you'll need to configure a proxy page to get this to run successfully. More info here:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/ags_proxy.htm"&gt;Using the proxy page&lt;/A&gt;&lt;SPAN&gt;. The first bullet point on that page addresses your issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 17:47:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-limit/m-p/489805#M45527</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2010-10-27T17:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Query Limit ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-limit/m-p/489806#M45528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Since your query gets tacked on to the URL, and browsers impose a limit on the size of URLs for security purposes, you'll need to configure a proxy page to get this to run successfully. More info here:&amp;nbsp; &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/ags_proxy.htm"&gt;Using the proxy page&lt;/A&gt;. The first bullet point on that page addresses your issue.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought the same thing but when i test the Query through the ArcGIS Services Directory Query form it works and its all placed in the URL.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 18:00:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-limit/m-p/489806#M45528</guid>
      <dc:creator>Drew</dc:creator>
      <dc:date>2010-10-27T18:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Query Limit ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-limit/m-p/489807#M45529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After a little further reading your probably right and the JS API is restricting the call..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I will look at the proxy page you mentioned or just move to the SOAP API for my specific task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your assistance Derek .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Drew&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 18:16:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-limit/m-p/489807#M45529</guid>
      <dc:creator>Drew</dc:creator>
      <dc:date>2010-10-27T18:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Query Limit ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-limit/m-p/489808#M45530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You're most likely running into the get size limit.&amp;nbsp; You're where clause is being written as a param in the call, so it's probably blowing up the url, passing in a partial where.&amp;nbsp; Can't remember what the size is off the top of my head, but it's around a couple thousand.&amp;nbsp; If you can force the call to switch to post you'll clear that limit.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course, I don't know of a way to specify in the JSAPI query class how to switch to post, or if it does it automatically, but I would recommend sticking with the RESTful services, they're much easier to work with in general.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 02:12:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-limit/m-p/489808#M45530</guid>
      <dc:creator>MichaelRollins</dc:creator>
      <dc:date>2010-11-03T02:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Query Limit ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-limit/m-p/489809#M45531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You're most likely running into the get size limit.&amp;nbsp; You're where clause is being written as a param in the call, so it's probably blowing up the url, passing in a partial where.&amp;nbsp; Can't remember what the size is off the top of my head, but it's around a couple thousand.&amp;nbsp; If you can force the call to switch to post you'll clear that limit.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Of course, I don't know of a way to specify in the JSAPI query class how to switch to post, or if it does it automatically, but I would recommend sticking with the RESTful services, they're much easier to work with in general.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It was the URL and i used the proxy page&amp;nbsp; swingley linked above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It worked perfect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Drew&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 11:32:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-limit/m-p/489809#M45531</guid>
      <dc:creator>Drew</dc:creator>
      <dc:date>2010-11-03T11:32:09Z</dc:date>
    </item>
  </channel>
</rss>

