<?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: ArcGISFeature.Attributes.Count is Much Lower than Expected in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgisfeature-attributes-count-is-much-lower-than/m-p/374424#M4424</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. That was what i was missing. I'm new to the .NET API and i didn't know about it. Here is what i did and how i checked it. Maybe its helpful for somebody else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public async Task LoadAsync_site(ArcGISFeature _feature)&lt;BR /&gt; {&lt;BR /&gt; Feature = _feature;&lt;/P&gt;&lt;P&gt;await Feature.LoadAsync();&lt;/P&gt;&lt;P&gt;//if the featurewas loaded successfully, you can see all attributes. Below is a test&lt;BR /&gt; if (_Feature.LoadStatus == Esri.ArcGISRuntime.LoadStatus.Loaded)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;var A_value = Feature.GetAttributeValue("field_A");&lt;BR /&gt; var B_value = Feature.GetAttributeValue("field_B");&lt;BR /&gt; var C_value = Feature.GetAttributeValue("Field_C");&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2018 16:55:10 GMT</pubDate>
    <dc:creator>TheKenerson</dc:creator>
    <dc:date>2018-05-31T16:55:10Z</dc:date>
    <item>
      <title>ArcGISFeature.Attributes.Count is Much Lower than Expected</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgisfeature-attributes-count-is-much-lower-than/m-p/374422#M4422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Newbie question of the day. I am writing a simple data editor using Xamarin Forms .Here is my issue: In my sample, when I access a selected feature in my feature service, I get a count of 4 for my feature service and I am expecting a count of 49.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Count is displayed using the ArcGIS Feature.Attributes.Count Property.&lt;/P&gt;&lt;P&gt;So I can display and edit the attributes, but only a few of them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried accessing other feature services from AGOL, and their counts are way off too. Its generally about 10% of the total number of attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the data is okay as I can access/display/edit the same feature service in a webapp using REST with the JavaScript API I just cannot access the data in the .NET Runtime Xamarin Forms Application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody else come across this behavior?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 20:00:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgisfeature-attributes-count-is-much-lower-than/m-p/374422#M4422</guid>
      <dc:creator>TheKenerson</dc:creator>
      <dc:date>2018-05-30T20:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGISFeature.Attributes.Count is Much Lower than Expected</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgisfeature-attributes-count-is-much-lower-than/m-p/374423#M4423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you load the feature first? By default only a minimum set of attributes needed for rendering is requested from the server so you won't get the network overhead of downloading a bunch of attributes you might not ever see. Once you identify a feature and want to display it in the UI, you should "load" it first so that all the data is included:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(feature is ILoadable)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; await ((ILoadable)feature).LoadAsync();&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 20:34:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgisfeature-attributes-count-is-much-lower-than/m-p/374423#M4423</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2018-05-30T20:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGISFeature.Attributes.Count is Much Lower than Expected</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgisfeature-attributes-count-is-much-lower-than/m-p/374424#M4424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. That was what i was missing. I'm new to the .NET API and i didn't know about it. Here is what i did and how i checked it. Maybe its helpful for somebody else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public async Task LoadAsync_site(ArcGISFeature _feature)&lt;BR /&gt; {&lt;BR /&gt; Feature = _feature;&lt;/P&gt;&lt;P&gt;await Feature.LoadAsync();&lt;/P&gt;&lt;P&gt;//if the featurewas loaded successfully, you can see all attributes. Below is a test&lt;BR /&gt; if (_Feature.LoadStatus == Esri.ArcGISRuntime.LoadStatus.Loaded)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;var A_value = Feature.GetAttributeValue("field_A");&lt;BR /&gt; var B_value = Feature.GetAttributeValue("field_B");&lt;BR /&gt; var C_value = Feature.GetAttributeValue("Field_C");&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 16:55:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgisfeature-attributes-count-is-much-lower-than/m-p/374424#M4424</guid>
      <dc:creator>TheKenerson</dc:creator>
      <dc:date>2018-05-31T16:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGISFeature.Attributes.Count is Much Lower than Expected</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgisfeature-attributes-count-is-much-lower-than/m-p/374425#M4425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm glad it worked out for you.&lt;/P&gt;&lt;P&gt;You don't really need the LoadStatus check. It's guaranteed to have succeeded - otherwise it would throw (so you might want to use try/catch instead)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 21:26:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgisfeature-attributes-count-is-much-lower-than/m-p/374425#M4425</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2018-05-31T21:26:24Z</dc:date>
    </item>
  </channel>
</rss>

