<?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: C# AddFeature in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/c-addfeature/m-p/374766#M1780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply.&amp;nbsp; I actually found out what the issue was.&amp;nbsp; I used fiddler to compare the JSON that was passed to 10.1 and to 10.0 from the webform when calling the addfeature rest method.&amp;nbsp; In 10.1 "Geometry" and "Attributes" start with a capital letter.&amp;nbsp; In 10.0 they should start with a lower case letter ("geometry, "attributes").&amp;nbsp; With JSON being case senstive this makes sense.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Oct 2013 17:20:29 GMT</pubDate>
    <dc:creator>DeanRich</dc:creator>
    <dc:date>2013-10-01T17:20:29Z</dc:date>
    <item>
      <title>C# AddFeature</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/c-addfeature/m-p/374764#M1778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My setup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C# 4.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Silverlight 5&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS 10.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to use the REST API to add a feature.&amp;nbsp; I'm doing it this way because we want to be able to add a polygon without using a map.&amp;nbsp; When I post the JSON data we get a message back saying it was successful and we get the ObjectId back from the REST response.&amp;nbsp; However the attribute data that I attached to the request AND the polygon were not set at all.&amp;nbsp; Both have a &amp;lt;Null&amp;gt; value but I am able to verify the new record was inserted.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now when I run this same process on a the same feature class (sort of) but within our arcGIS 10.1 server it works perfect.&amp;nbsp; The record is inserted and all attribute and polygon data is visible in the newly inserted record.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as I can tell there is no difference between the 10.0 and 10.1 feature class other than the version of arcGIS.&amp;nbsp; The documentation that I found leads me to believe this should work on both 10.0 and 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could it be that what I'm trying to achieve is only possible in 10.1.&amp;nbsp; From the documentation I found it looks like it should work on 10.0 and 10.1 but I could be mistaken.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've compared the response/request using fiddler between using the webform addfeature and the rest call to add the feature and they are the same request/response messages.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions are greatly appreciated as I've tried all I can think of.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dean&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 15:45:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/c-addfeature/m-p/374764#M1778</guid>
      <dc:creator>DeanRich</dc:creator>
      <dc:date>2013-09-30T15:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: C# AddFeature</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/c-addfeature/m-p/374765#M1779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What kind of response you got from service when added feature and how you tried to get the feature information back?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One thing that you could do is to use /applyEdits endpoint. I usually work only with that when using REST API directly since I can do add/update/delete with one implementation. Haven't tested that with 10.0 thou.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 17:35:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/c-addfeature/m-p/374765#M1779</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2013-09-30T17:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: C# AddFeature</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/c-addfeature/m-p/374766#M1780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply.&amp;nbsp; I actually found out what the issue was.&amp;nbsp; I used fiddler to compare the JSON that was passed to 10.1 and to 10.0 from the webform when calling the addfeature rest method.&amp;nbsp; In 10.1 "Geometry" and "Attributes" start with a capital letter.&amp;nbsp; In 10.0 they should start with a lower case letter ("geometry, "attributes").&amp;nbsp; With JSON being case senstive this makes sense.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 17:20:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/c-addfeature/m-p/374766#M1780</guid>
      <dc:creator>DeanRich</dc:creator>
      <dc:date>2013-10-01T17:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: C# AddFeature</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/c-addfeature/m-p/374767#M1781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good that you got it fixed and thanks for to info. This is something that its good to know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 17:31:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/c-addfeature/m-p/374767#M1781</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2013-10-01T17:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: C# AddFeature</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/c-addfeature/m-p/374768#M1782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm running into the very same issue when attempting to send a polygon feature that I have created in JSON to the ArcGIS Server REST API AddFeature endpoint (version 10.0). A new record is being added to my source feature class, however all of the attributes are null as well as the polygon field. The response I am getting is that the post was successful. I already had the lowercase on the attributes and geometry parameters which is required for 10.0.&amp;nbsp; Does anyone have any other options I could explore? The JSON I am sending is below. Any help would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jen&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[{"feature":{"attributes":{"HasComments":0,"HasHyperlinks":0,"Narrative":"This is test 1","Title":"Test 1","ActiveDateRangeType":0,"IsTimeSlice":0,"SupportsComments":0,"NoteGroupName":""},"geometry":{"rings":[[-9825778.4024791,5168952.50228657],[-9825604.53795373,5168372.95386866],[-9825855.67560149,5167658.17748657],[-9826242.04121343,5167503.63124179],[-9826145.44981045,5166730.90001791],[-9826802.27135075,5166750.21829851],[-9827285.22836567,5166672.94517612],[-9827806.82194179,5166769.53657911],[-9828231.82411492,5167175.22047164],[-9828289.77895672,5167793.40545075],[-9828405.6886403,5168411.59042985],[-9828367.0520791,5168952.50228657],[-9828019.32302836,5169338.86789851],[-9826744.31650895,5169435.45930149],[-9826184.08637164,5169512.73242388],[-9825778.4024791,5168952.50228657]]}}}]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 15:23:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/c-addfeature/m-p/374768#M1782</guid>
      <dc:creator>JenniferLink</dc:creator>
      <dc:date>2014-02-27T15:23:52Z</dc:date>
    </item>
  </channel>
</rss>

