<?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 Service is not associated with a feature table in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/feature-service-is-not-associated-with-a-feature/m-p/63997#M675</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First you need to load all the fields of the ServiceFeatureTable using &lt;STRONG&gt;&amp;nbsp;QueryFeatureFields.LoadAll &lt;/STRONG&gt;and then call&lt;STRONG&gt; SetAttributeValue() &lt;/STRONG&gt;method.. By default, it loads only the minimum fields and I believe that causes the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;FeatureQueryResult queryResult = await _featureTable.QueryFeaturesAsync(queryParams, &lt;STRONG&gt;QueryFeatureFields.LoadAll)&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried at my side and I don't get the error anymore, otherwise I do get the same error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nagma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Aug 2017 16:41:23 GMT</pubDate>
    <dc:creator>NagmaYasmin</dc:creator>
    <dc:date>2017-08-09T16:41:23Z</dc:date>
    <item>
      <title>Feature Service is not associated with a feature table</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/feature-service-is-not-associated-with-a-feature/m-p/63996#M674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I´m using the latest version of Arcgis SDK for .NET in a wpf app. I developed a user control which interacts with map and feature services, I'm able to create features in the user control and returning them to the wpf app where&amp;nbsp;I call a method (&lt;STRONG&gt;SyncFeatures&lt;/STRONG&gt;) that adds/updates the features received from the user control.&amp;nbsp;Inside method&amp;nbsp;&lt;STRONG&gt;SyncFeatures&amp;nbsp;&lt;/STRONG&gt;I add some attributes to the features like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pObjResultadoRegistroDomiciliario.FeatureDomicilioPersona.SetAttributeValue("usuario", pUsuario);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when that line is executed i get an InvalidOperationException &lt;STRONG&gt;"Cannot call this method in this context: Feature Service is not associated with a feature table".&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Debugging I found that "&lt;SPAN&gt;FeatureDomicilioPersona" has a property &lt;STRONG&gt;FeatureTable&lt;/STRONG&gt; which is a ServiceFeatureTable, when I receive the feature from the user control the property&amp;nbsp;&lt;STRONG&gt;FeatureDomicilioPersona&lt;/STRONG&gt;.&lt;STRONG&gt;FeatureTable&amp;nbsp;&lt;/STRONG&gt;has content:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/366343_pastedImage_1.png" style="width: 620px; height: 275px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when I send the feature to the&amp;nbsp;&lt;STRONG&gt;SyncFeatures &lt;/STRONG&gt;method that property magically disappears:&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/366360_pastedImage_5.png" style="width: 620px; height: 274px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having the property FeatureTable set to null is the reason for the exception I get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I followed the examples and guides for the sdk but I´m not able to find the reason for that behavior&lt;/P&gt;&lt;P&gt;Is there something I missing?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 13:20:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/feature-service-is-not-associated-with-a-feature/m-p/63996#M674</guid>
      <dc:creator>PatricioQuispe_Sosa</dc:creator>
      <dc:date>2017-08-09T13:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Service is not associated with a feature table</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/feature-service-is-not-associated-with-a-feature/m-p/63997#M675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First you need to load all the fields of the ServiceFeatureTable using &lt;STRONG&gt;&amp;nbsp;QueryFeatureFields.LoadAll &lt;/STRONG&gt;and then call&lt;STRONG&gt; SetAttributeValue() &lt;/STRONG&gt;method.. By default, it loads only the minimum fields and I believe that causes the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;FeatureQueryResult queryResult = await _featureTable.QueryFeaturesAsync(queryParams, &lt;STRONG&gt;QueryFeatureFields.LoadAll)&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried at my side and I don't get the error anymore, otherwise I do get the same error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nagma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 16:41:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/feature-service-is-not-associated-with-a-feature/m-p/63997#M675</guid>
      <dc:creator>NagmaYasmin</dc:creator>
      <dc:date>2017-08-09T16:41:23Z</dc:date>
    </item>
  </channel>
</rss>

