<?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: ServiceFeatureTable.populateFromService silently returns 0 features when returnGeometry=false + spatial filter in Kotlin Maps SDK Questions</title>
    <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/servicefeaturetable-populatefromservice-silently/m-p/1704626#M649</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/176"&gt;@Nicholas-Furness&lt;/a&gt;&amp;nbsp;, that makes perfect sense now that I'm not in the middle of troubleshooting. I agree that an error state would be an improvement over the silent failure. Thanks for the quick reply.&lt;/P&gt;</description>
    <pubDate>Wed, 27 May 2026 14:27:32 GMT</pubDate>
    <dc:creator>BenHaas4</dc:creator>
    <dc:date>2026-05-27T14:27:32Z</dc:date>
    <item>
      <title>ServiceFeatureTable.populateFromService silently returns 0 features when returnGeometry=false + spatial filter</title>
      <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/servicefeaturetable-populatefromservice-silently/m-p/1703559#M647</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Summary&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;FeatureRequestMode.ManualCache&lt;/STRONG&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;ServiceFeatureTable.populateFromService(...)&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;with a spatial predicate (&lt;/SPAN&gt;&lt;STRONG&gt;geometry&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;+&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;spatialRelationship&lt;/STRONG&gt;&lt;SPAN&gt;) silently drops every server-returned feature when&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;returnGeometry = false&lt;/STRONG&gt;&lt;SPAN&gt;. The SDK appears to re-apply the spatial filter locally against the just-cached rows; those rows carry null geometry because the SDK itself requested&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;returnGeometry=false&lt;/STRONG&gt;&lt;SPAN&gt;; a local&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;intersects(envelope, null)&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;returns false for every row, so the cache evaluates to empty even though the server replied with the correct features. No exception, no log warning.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is this expected behavior? In my case, I don't need the geometry for the features returned from the intersect.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2026 23:56:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/kotlin-maps-sdk-questions/servicefeaturetable-populatefromservice-silently/m-p/1703559#M647</guid>
      <dc:creator>BenHaas4</dc:creator>
      <dc:date>2026-05-25T23:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: ServiceFeatureTable.populateFromService silently returns 0 features when returnGeometry=false + spatial filter</title>
      <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/servicefeaturetable-populatefromservice-silently/m-p/1704479#M648</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/986810"&gt;@BenHaas4&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;Sorry for the delay getting back to you.&lt;/P&gt;&lt;P&gt;Assuming you are setting &lt;STRONG&gt;returnGeometry=false&lt;/STRONG&gt; on the QueryParameters being used to populate the table (I &lt;EM&gt;think&lt;/EM&gt; you are), then I would expect this behaviour, yes, though arguably we should treat this as an error and provide better feedback.&lt;/P&gt;&lt;P&gt;What you have with a ServiceFeatureTable from a &lt;A href="https://developers.arcgis.com/documentation/glossary/feature-layer-client-side/" target="_self"&gt;feature layer&lt;/A&gt; (i.e. NOT a &lt;A href="https://developers.arcgis.com/documentation/glossary/table/" target="_self"&gt;non-spatial table&lt;/A&gt;) is a table that expects a geometry as part of its schema. It's reading the feature service definition to get to that state. So the geometry field cannot be NULL in this table, but you're trying to populate the table with NULL geometries.&lt;/P&gt;&lt;P&gt;When you then try to populate it with geometry-less features, what should it do¹? It's an invalid state for that feature table to have records with no geometry.&lt;/P&gt;&lt;P&gt;You could do one of two things:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Don't populate the table manually. Instead use the default featureRequestMode (onInteractionCache) and then simply query (not populate) the ServiceFeatureTable using the QueryParameters. That will return you a dataset of the features you want, without their geometries.&lt;/LI&gt;&lt;LI&gt;Populate the service feature table including the geometries, but then ignore the geometries when you work with the features you get back.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Hope that helps. Let me know if I've missed something.&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;SPAN&gt;¹&amp;nbsp;&lt;/SPAN&gt;Well, what it should probably do is tell you that you can't do what you're trying to do, not nothing at all and leave you hanging… I'll see if we can look into that. Feels like a decent improvement to the SDKs.&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2026 21:21:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/kotlin-maps-sdk-questions/servicefeaturetable-populatefromservice-silently/m-p/1704479#M648</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2026-05-26T21:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: ServiceFeatureTable.populateFromService silently returns 0 features when returnGeometry=false + spatial filter</title>
      <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/servicefeaturetable-populatefromservice-silently/m-p/1704626#M649</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/176"&gt;@Nicholas-Furness&lt;/a&gt;&amp;nbsp;, that makes perfect sense now that I'm not in the middle of troubleshooting. I agree that an error state would be an improvement over the silent failure. Thanks for the quick reply.&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2026 14:27:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/kotlin-maps-sdk-questions/servicefeaturetable-populatefromservice-silently/m-p/1704626#M649</guid>
      <dc:creator>BenHaas4</dc:creator>
      <dc:date>2026-05-27T14:27:32Z</dc:date>
    </item>
  </channel>
</rss>

