<?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: Unable to enumerate features in feature layer table. in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/unable-to-enumerate-features-in-feature-layer/m-p/1366069#M12424</link>
    <description>&lt;P&gt;Did some more investigation. Turns out was pointed to the wrong service endpoint....&lt;/P&gt;&lt;P&gt;User error! Or rather developer error in this case...&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jan 2024 23:01:31 GMT</pubDate>
    <dc:creator>MoyerSolutions</dc:creator>
    <dc:date>2024-01-03T23:01:31Z</dc:date>
    <item>
      <title>Unable to enumerate features in feature layer table.</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/unable-to-enumerate-features-in-feature-layer/m-p/1358247#M12365</link>
      <description>&lt;P&gt;Hello! I am trying to enumerate attributes in a feature layer table.&amp;nbsp;Another follow up to a &lt;A href="https://community.esri.com/t5/net-maps-sdk-questions/read-table-values-from-offline-goedatabase/m-p/1357173#M12361" target="_self"&gt;previous question&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Using GeodatabaseFeatureTable.QueryFeaturesAsync(new() { WhereClause = "" }) to load all values.&lt;/P&gt;&lt;P&gt;This has worked for the Tally table, but not the Plot table in the feature layer. The only difference I see is &lt;STRONG&gt;Type: Layer(Hosted)&lt;/STRONG&gt; vs &lt;STRONG&gt;Type: Table(Hosted)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MoyerSolutions_0-1701978473340.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/88401iD9B19AF6627304EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MoyerSolutions_0-1701978473340.png" alt="MoyerSolutions_0-1701978473340.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;GeodatabaseFeatureTable table = geodatabase.GetGeodatabaseFeatureTable("Plot");
await table.LoadAsync();

QueryParameters queryParams = new() { WhereClause = "" }; //all
FeatureQueryResult result = await table.QueryFeaturesAsync(queryParams);
IEnumerable&amp;lt;ArcGISFeature&amp;gt; features = result.Cast&amp;lt;ArcGISFeature&amp;gt;();
int count = features.Count(); //break here, 0 results????&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing an argument? Is there a different API for loading features from the table in layers?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 20:06:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/unable-to-enumerate-features-in-feature-layer/m-p/1358247#M12365</guid>
      <dc:creator>MoyerSolutions</dc:creator>
      <dc:date>2023-12-07T20:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to enumerate features in feature layer table.</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/unable-to-enumerate-features-in-feature-layer/m-p/1358710#M12366</link>
      <description>&lt;P&gt;I tested your code using the ArcGIS Maps SDKs for .NET samples and it worked as expected. Maybe this can help you troubleshoot (?).&lt;/P&gt;&lt;P&gt;Using the "Display feature layers" sample, I added the following lines from your code at this location:&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-maps-sdk-dotnet-samples/blob/main/src/WPF/WPF.Viewer/Samples/Layers/DisplayFeatureLayers/DisplayFeatureLayers.xaml.cs#L156" target="_blank"&gt;https://github.com/Esri/arcgis-maps-sdk-dotnet-samples/blob/main/src/WPF/WPF.Viewer/Samples/Layers/DisplayFeatureLayers/DisplayFeatureLayers.xaml.cs#L156&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;QueryParameters queryParams = new QueryParameters { WhereClause = "" }; //all
FeatureQueryResult result = await trailheadsGeodatabaseFeatureTable.QueryFeaturesAsync(queryParams);
IEnumerable&amp;lt;ArcGISFeature&amp;gt; features = result.Cast&amp;lt;ArcGISFeature&amp;gt;();
int count = features.Count(); //break here, 0 results????&lt;/LI-CODE&gt;&lt;P&gt;For this geodatabase, 'count' had a value of 475.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 19:12:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/unable-to-enumerate-features-in-feature-layer/m-p/1358710#M12366</guid>
      <dc:creator>ThadTilton</dc:creator>
      <dc:date>2023-12-08T19:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to enumerate features in feature layer table.</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/unable-to-enumerate-features-in-feature-layer/m-p/1359347#M12370</link>
      <description>&lt;P&gt;Hmm, I get 475 results also with that test.&lt;/P&gt;&lt;P&gt;I can't seem to find the difference in why it works there and on the Tally table, but not the Plot table.&lt;/P&gt;&lt;P&gt;If I change &lt;EM&gt;only&lt;/EM&gt; the Table name, I get different results:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;//works: we get results!
GeodatabaseFeatureTable table = geodatabase.GetGeodatabaseFeatureTable("Tally"); 

//doesn't work: 0 results?
GeodatabaseFeatureTable table = geodatabase.GetGeodatabaseFeatureTable("Plot");&lt;/LI-CODE&gt;&lt;P&gt;So the code must be correct, leading me to believe it's config related?&lt;/P&gt;&lt;P&gt;I expect 2 results from the current Plot table: &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MoyerSolutions_0-1702326059296.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/88675i0A4B7DA33C4D3FB4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MoyerSolutions_0-1702326059296.png" alt="MoyerSolutions_0-1702326059296.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm digging around the properties but the only difference I can find between them is them is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Plot&amp;nbsp; =&amp;nbsp;Data Type:&amp;nbsp;Feature Service Feature Class&lt;/LI&gt;&lt;LI&gt;Tally =&amp;nbsp;Data Type:&amp;nbsp;Feature Service Table&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some sort of flag or setting I should look for?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 20:32:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/unable-to-enumerate-features-in-feature-layer/m-p/1359347#M12370</guid>
      <dc:creator>MoyerSolutions</dc:creator>
      <dc:date>2023-12-11T20:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to enumerate features in feature layer table.</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/unable-to-enumerate-features-in-feature-layer/m-p/1366069#M12424</link>
      <description>&lt;P&gt;Did some more investigation. Turns out was pointed to the wrong service endpoint....&lt;/P&gt;&lt;P&gt;User error! Or rather developer error in this case...&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 23:01:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/unable-to-enumerate-features-in-feature-layer/m-p/1366069#M12424</guid>
      <dc:creator>MoyerSolutions</dc:creator>
      <dc:date>2024-01-03T23:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to enumerate features in feature layer table.</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/unable-to-enumerate-features-in-feature-layer/m-p/1381395#M12523</link>
      <description>&lt;P&gt;Reopened the issue. Turns out not the full story. I was able to in one case to load 1 item of 3 but the others in one case. I am now unable to reproduce this partially working result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now again I am unable to load any items, regardless of what data is in the table.&lt;/P&gt;&lt;P&gt;I do not understand why the geodatabase does not contain all the features, or the query is not returning all features in the table.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 00:37:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/unable-to-enumerate-features-in-feature-layer/m-p/1381395#M12523</guid>
      <dc:creator>MoyerSolutions</dc:creator>
      <dc:date>2024-02-13T00:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to enumerate features in feature layer table.</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/unable-to-enumerate-features-in-feature-layer/m-p/1386392#M12545</link>
      <description>&lt;P&gt;There were some extent issues. Rather than hardcode, turns out you can grab the full extent via: &lt;STRONG&gt;`GeodatabaseSyncTask.ServiceInfo.FullExtent`&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This should include all data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;GeodatabaseSyncTask gdbSyncTask = await GeodatabaseSyncTask.CreateAsync(new Uri(featureServiceUri));

GenerateGeodatabaseParameters generateParams = await gdbSyncTask.CreateDefaultGenerateGeodatabaseParametersAsync(gdbSyncTask.ServiceInfo.FullExtent);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2024 00:06:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/unable-to-enumerate-features-in-feature-layer/m-p/1386392#M12545</guid>
      <dc:creator>MoyerSolutions</dc:creator>
      <dc:date>2024-02-24T00:06:21Z</dc:date>
    </item>
  </channel>
</rss>

