<?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 Null attributes when creating FeatureCollectionTable from QueryFeatureResult in Kotlin Maps SDK Questions</title>
    <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/null-attributes-when-creating/m-p/1414032#M403</link>
    <description>&lt;P&gt;When I query a ServiceFeatureTable with queryFeatures, and try to create a FeatureCollectionTable from that result, the features of the table end with null attributes.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample code&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="kotlin"&gt;val queryParams = QueryParameters().apply {
    whereClause = "IDENT IN (1,2,3)"
}
val queryResult = layer.table?.queryFeatures(queryParams, QueryFeatureFields.LoadAll).getOrNull()
val featureCollectionTable = FeatureCollectionTable(queryResult!!)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I expect&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The FeatureCollectionTable should be created with the features from queryResult with fields from the service.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I got&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The FeatureCollectionTable was correctly created with the features from queryResult, but all the fields are set to null. Only the OBJECTID field is filled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I creating the FeatureCollectionTable wrong? How do I properly add the features so that the fields are populated?&lt;/P&gt;</description>
    <pubDate>Tue, 23 Apr 2024 10:32:56 GMT</pubDate>
    <dc:creator>HVN</dc:creator>
    <dc:date>2024-04-23T10:32:56Z</dc:date>
    <item>
      <title>Null attributes when creating FeatureCollectionTable from QueryFeatureResult</title>
      <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/null-attributes-when-creating/m-p/1414032#M403</link>
      <description>&lt;P&gt;When I query a ServiceFeatureTable with queryFeatures, and try to create a FeatureCollectionTable from that result, the features of the table end with null attributes.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample code&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="kotlin"&gt;val queryParams = QueryParameters().apply {
    whereClause = "IDENT IN (1,2,3)"
}
val queryResult = layer.table?.queryFeatures(queryParams, QueryFeatureFields.LoadAll).getOrNull()
val featureCollectionTable = FeatureCollectionTable(queryResult!!)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I expect&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The FeatureCollectionTable should be created with the features from queryResult with fields from the service.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I got&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The FeatureCollectionTable was correctly created with the features from queryResult, but all the fields are set to null. Only the OBJECTID field is filled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I creating the FeatureCollectionTable wrong? How do I properly add the features so that the fields are populated?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 10:32:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/kotlin-maps-sdk-questions/null-attributes-when-creating/m-p/1414032#M403</guid>
      <dc:creator>HVN</dc:creator>
      <dc:date>2024-04-23T10:32:56Z</dc:date>
    </item>
  </channel>
</rss>

