<?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: Feature Layer query can't return all the matching records in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814747#M2624</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/2049"&gt;John Yaist&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for looking into this.&lt;/P&gt;&lt;P&gt;I tried the same code in a 1.7.1 version, it gives me same result.&lt;/P&gt;&lt;P&gt;Here is the environment:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/483772_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The geometry of the filter is quite complicated as shown below:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/483770_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;val_flayer is the cadastral feature layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/483771_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;feature service&amp;nbsp;I am using is for internal use and behind our organisational firewall, which is unfortunate, otherwise,&amp;nbsp; it would be easy to reproduce the issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Mar 2020 07:27:24 GMT</pubDate>
    <dc:creator>simoxu</dc:creator>
    <dc:date>2020-03-02T07:27:24Z</dc:date>
    <item>
      <title>Feature Layer query can't return all the matching records</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814736#M2613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using 1.7.0 version of the Python API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a fairly large feature layer published in our ArcGIS Portal 10.7, roughly 1 million records in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do a query on this layer, and only return the count only, I'll get the count 1329 which is correct.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="115" src="https://community.esri.com/legacyfs/online/482787_pastedImage_1.png" width="1816" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I try to return the actual records, it only returns 99 records despite that I've set return_all_records to True.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/482792_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know why?&amp;nbsp; and how can I fix it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2020 07:00:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814736#M2613</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2020-02-20T07:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer query can't return all the matching records</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814737#M2614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At this point, it is unclear whether this is a REST API or ArcGIS API for Python issue.&amp;nbsp; Have you tried directly querying the REST API to see what results you get?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2020 15:00:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814737#M2614</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-02-20T15:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer query can't return all the matching records</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814738#M2615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;I tested the same spatial filter in REST API, it seems returning all the records.&lt;/P&gt;&lt;P&gt;So it is clear to me the issue is in the python API.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2020 06:07:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814738#M2615</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2020-02-21T06:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer query can't return all the matching records</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814739#M2616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if you check the records in the feature set before converting to data frame?&amp;nbsp; That might tell you whether it is a feature set issue or a data frame issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2020 15:56:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814739#M2616</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-02-21T15:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer query can't return all the matching records</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814740#M2617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I tried that. the query does not return all the features intersecting with the input geometry.&lt;/P&gt;&lt;P&gt;This only happens when the geometry filter is being used. there's no problem with the attribute filter using the &lt;STRONG&gt;&lt;EM&gt;where&lt;/EM&gt; &lt;/STRONG&gt;parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Feb 2020 23:04:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814740#M2617</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2020-02-23T23:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer query can't return all the matching records</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814741#M2618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wonder if the results are correct in the ArcGIS API for Python but they are based on something happening in translation of your geometry filter from Python to REST.&amp;nbsp; What is your geometry filter?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2020 14:16:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814741#M2618</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-02-24T14:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer query can't return all the matching records</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814742#M2619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joshua&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The geometry filter is a ploygon that returns all the land parcels that intersect with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an update on what I've done:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I exported JSON of this geometry and tried it in the REST API, it works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Python API, the geometry works fine if only IDs, or counts are returned. so my current workaround is to return all the IDs then query the same layer again using the where parameter to return all the features, which works fine, but apparently this is not the ideal way to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried this in a standalone script, same issue. So it's not a Jupyter notebook bug either. so far I can pretty much isolate it to ArcGIS Python API. I just need ESRI to confirm my guessing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've send ESRI a support request,&amp;nbsp; and I'll keep this post updated when I hear from them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Simo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2020 00:08:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814742#M2619</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2020-02-25T00:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer query can't return all the matching records</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814743#M2620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice work, and sometimes a workaround is the best, most practical path forward. Can you reproduce the behavior using a public-facing service and some arbitrary polygon?&amp;nbsp; If so, please share.&amp;nbsp; I am guessing it has to do with the geometry information is getting translated from Python to REST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be interested what you hear back.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2020 18:44:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814743#M2620</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-02-25T18:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer query can't return all the matching records</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814744#M2621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No worries.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried the same query on a large point layer (the centroids of the features in the original polygon layer), and it works fine. so it happens on polygon layers, I haven't tested polygon lines which I don't use very often.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope we can get the attention from a member in the Dev Team? &lt;A href="https://community.esri.com/migrated-users/2049"&gt;John Yaist&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2020 03:05:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814744#M2621</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2020-02-27T03:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer query can't return all the matching records</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814745#M2622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll look through this today,&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/10807"&gt;simo xu&lt;/A&gt;.&amp;nbsp; Do you see the same results with&amp;nbsp;1.7.1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2020 17:30:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814745#M2622</guid>
      <dc:creator>JohnYaist1</dc:creator>
      <dc:date>2020-02-28T17:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer query can't return all the matching records</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814746#M2623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/10807"&gt;simo xu&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not seeing what you're describing using that last couple releases of the Python API. I tried this on a couple different layers, one small one, one larger one (not a huge feature layer, but the features contain a large number of vertices).&lt;/P&gt;&lt;P&gt;Do you see this on any other polygon layer with an arbitrary geometry filter? Do you have a public-facing layer as&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/3420"&gt;Joshua Bixby&lt;/A&gt;&amp;nbsp;suggests? Can you try explicitly adding the where clause to see if that works?&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="string token"&gt;"where='1=1'"&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2020 22:49:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814746#M2623</guid>
      <dc:creator>JohnYaist1</dc:creator>
      <dc:date>2020-02-28T22:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer query can't return all the matching records</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814747#M2624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/2049"&gt;John Yaist&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for looking into this.&lt;/P&gt;&lt;P&gt;I tried the same code in a 1.7.1 version, it gives me same result.&lt;/P&gt;&lt;P&gt;Here is the environment:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/483772_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The geometry of the filter is quite complicated as shown below:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/483770_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;val_flayer is the cadastral feature layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/483771_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;feature service&amp;nbsp;I am using is for internal use and behind our organisational firewall, which is unfortunate, otherwise,&amp;nbsp; it would be easy to reproduce the issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2020 07:27:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814747#M2624</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2020-03-02T07:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer query can't return all the matching records</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814748#M2625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/2049"&gt;John Yaist&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;This strange behavior only happens when Feature Service being queried is published to the Federated ArcGIS server directly --&amp;nbsp; this is my case.&lt;/P&gt;&lt;P&gt;I tried to upload the same FGDB zip file to our ArcGIS Portal and publish it there as a hosted service, it works fine.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2020 00:22:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814748#M2625</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2020-03-04T00:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer query can't return all the matching records</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814749#M2626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It has something to do with query pagination.&lt;/P&gt;&lt;P&gt;when I monitor the the REST requests it sent to the server, it sends two requests:&lt;/P&gt;&lt;P&gt;1. get the the count of the records&lt;/P&gt;&lt;P&gt;2. get the actual features with&amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #595959; background-color: #f8f8f8; font-weight: 300;"&gt;resultRecordCount paramter&amp;nbsp;sets to the result of the first request.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8; font-weight: 300;"&gt;This is very logical and should work, but it doesn't for the feature service directly published to the federated server.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8; font-weight: 300;"&gt;if I remove the resultRecordCount parameter in the REST request in the second step. it returns all the features...&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2020 07:25:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814749#M2626</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2020-03-04T07:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer query can't return all the matching records</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814750#M2627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's proven that the actual differences are in the hosted service and non-hosted service. hosted service works regardless point layer or polygon layer. and I can reproduce the error using REST API. so this may not be a ArcGIS Python API bug. The issue is at a lower level I am afraid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2020 04:11:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814750#M2627</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2020-03-05T04:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer query can't return all the matching records</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814751#M2628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi &lt;A href="https://community.esri.com/migrated-users/2049"&gt;John Yaist&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;This is very likely an ArcGIS Python API bug.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the API source code for the query function (layer.py, Line 650), it does not test the&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;exceededTransferLimit&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;property in the response, the code assumes the query always return the specified number of records when possible. This is not the case for spatial filter....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exceededTransferLimit&amp;nbsp; was introduced in ArcGIS Server 10.3.1, please see the details in the following link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;EM&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;In some cases when using the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959; background-color: #f8f8f8; border-width: 1px 0px 1px 1px; border-style: solid none solid solid; border-color: #efefef initial #efefef #efefef; padding: 0px 0px 0px 0.15rem;"&gt;resultOffset&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959; background-color: #f8f8f8; border-width: 1px 0px; border-style: solid none; border-color: #efefef initial #efefef initial;"&gt;resultRecordCount&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&amp;nbsp;parameters, the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959; background-color: #f8f8f8; border-width: 1px 0px; border-style: solid none; border-color: #efefef initial #efefef initial;"&gt;exceededTransferLimit&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&amp;nbsp;property may be included in the query results even though the value specified in the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959; background-color: #f8f8f8; border-width: 1px 0px; border-style: solid none; border-color: #efefef initial #efefef initial;"&gt;resultRecordCount&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&amp;nbsp;has not been exceeded. This is due to internal spatial index filtering of the query results. For this reason, you should always rely on the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959; background-color: #f8f8f8; border-width: 1px 0px; border-style: solid none; border-color: #efefef initial #efefef initial;"&gt;exceededTransferLimit&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&amp;nbsp;property to determine if you should page through results rather than relying on the number of results returned from each page. In some extreme cases, zero results can be returned but the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959; background-color: #f8f8f8; border-width: 1px 0px; border-style: solid none; border-color: #efefef initial #efefef initial;"&gt;exceededTransferLimit&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&amp;nbsp;property will be returned. In these cases, you should continue paging through your results until&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959; background-color: #f8f8f8; border-width: 1px 0px; border-style: solid none; border-color: #efefef initial #efefef initial;"&gt;exceededTransferLimit&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&amp;nbsp;is no longer returned.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 12.8px;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 12.8px;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;&lt;SPAN&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/services-reference/query-feature-service-layer-.htm" title="https://developers.arcgis.com/rest/services-reference/query-feature-service-layer-.htm"&gt;Query (Feature Service/Layer)—ArcGIS REST API: Services Directory | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Simo&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 12.8px;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2020 04:35:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814751#M2628</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2020-03-11T04:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer query can't return all the matching records</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814752#M2629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all this information, &lt;A href="https://community.esri.com/migrated-users/10807"&gt;simo xu&lt;/A&gt;‌. To get an official bug report logged I suggest contacting support who can document the specific workflow.&amp;nbsp; I'll look into investigating on a service published directly to a federated server rather than a hosted one and see what I can reproduce.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2020 16:02:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814752#M2629</guid>
      <dc:creator>JohnYaist1</dc:creator>
      <dc:date>2020-03-11T16:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer query can't return all the matching records</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814753#M2630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/10807"&gt;simo xu&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;What version of Server are you publishing this service to?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you outline exactly how the service is "published to the Federated ArcGIS server directly?" I want to follow the exact steps to test on a service published in the exact same manner.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2020 17:06:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814753#M2630</guid>
      <dc:creator>JohnYaist1</dc:creator>
      <dc:date>2020-03-11T17:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer query can't return all the matching records</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814754#M2631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.esri.com/migrated-users/2049"&gt;John Yaist&lt;/A&gt;‌,&amp;nbsp;I've been talking with ESRI local support&amp;nbsp;and&amp;nbsp;just urged them to escalate it to ESRI US.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2020 23:05:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814754#M2631</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2020-03-11T23:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer query can't return all the matching records</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814755#M2632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;BUG-000129661: Querying a feature layer from a referenced feature service with a geometry filter returns an incomplete results using the ArcGIS API for Python&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2020 00:53:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-query-can-t-return-all-the-matching/m-p/814755#M2632</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2020-03-26T00:53:23Z</dc:date>
    </item>
  </channel>
</rss>

