<?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 Feature.SetAttributeValue() And Then UpdateFeatureAsync(Feature feature) in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/feature-setattributevalue-and-then/m-p/256603#M3025</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got a exception "Internal error exception: &lt;SPAN&gt;***&lt;/SPAN&gt; has an incorrect value. Encountered on feature with ID of 4768"., when I use&amp;nbsp;Feature.SetAttributeValue( "***", 2) And Then UpdateFeatureAsync(Feature feature), The&amp;nbsp;&lt;SPAN&gt;Attribute I want to set is type of integer.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Jun 2017 07:52:14 GMT</pubDate>
    <dc:creator>xiaoguangyan</dc:creator>
    <dc:date>2017-06-09T07:52:14Z</dc:date>
    <item>
      <title>Feature.SetAttributeValue() And Then UpdateFeatureAsync(Feature feature)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/feature-setattributevalue-and-then/m-p/256603#M3025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got a exception "Internal error exception: &lt;SPAN&gt;***&lt;/SPAN&gt; has an incorrect value. Encountered on feature with ID of 4768"., when I use&amp;nbsp;Feature.SetAttributeValue( "***", 2) And Then UpdateFeatureAsync(Feature feature), The&amp;nbsp;&lt;SPAN&gt;Attribute I want to set is type of integer.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 07:52:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/feature-setattributevalue-and-then/m-p/256603#M3025</guid>
      <dc:creator>xiaoguangyan</dc:creator>
      <dc:date>2017-06-09T07:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Feature.SetAttributeValue() And Then UpdateFeatureAsync(Feature feature)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/feature-setattributevalue-and-then/m-p/256604#M3026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I happened to experience similar error while updating the attribute data of the field type "short" or "Int16" of a feature table to an integer like 2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Numbers such as 2, 3 etc. are interpreted by the .NET compiler as type 'int' or 'Int32', so there is a mismatch of the field type. In this case the values must be explicitly declared as type 'short' or 'Int16'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your case, you may write the code as below:&lt;/P&gt;&lt;P&gt;Feature.SetAttributeValue( "***", (short)2);&lt;/P&gt;&lt;P&gt;&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>Fri, 09 Jun 2017 16:17:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/feature-setattributevalue-and-then/m-p/256604#M3026</guid>
      <dc:creator>NagmaYasmin</dc:creator>
      <dc:date>2017-06-09T16:17:38Z</dc:date>
    </item>
  </channel>
</rss>

