<?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: Help! can't edit featureservice in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/help-can-t-edit-featureservice/m-p/187796#M891</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;Have you had a chance to look at this editing sample? This sample shows example of how to add and delete features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ed_default_editingwidget.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ed_default_editingwidget.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jan 2012 15:40:56 GMT</pubDate>
    <dc:creator>RaviNarayanan</dc:creator>
    <dc:date>2012-01-20T15:40:56Z</dc:date>
    <item>
      <title>Help! can't edit featureservice</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/help-can-t-edit-featureservice/m-p/187795#M890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been trying to get help from a thread posted by another user (listed at bottom of this post), but it seems as if no one is watching it anymore.&amp;nbsp; I want to use a featureservice to make edits.&amp;nbsp; I have created the featureservice and can delete from the services directory.&amp;nbsp; When I use the services directory, the url is: "myservice/ArcGIS/rest/services/folder/myfeatserv/FeatureServer/0/deleteFeatures"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The parameters sent are: objectIds=6&amp;amp;where=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;f=html"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This effectively deletes objectId 6.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, if I use the same url: window.open("myservice/ArcGIS/rest/services/folder/myfeatserv/FeatureServer/0/deleteFeatures?objectIds=6&amp;amp;where=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;f=html");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I get an "unable to delete features" error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I CAN query the featureservice (utilizing json and getting features back in my response).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have set modify permissions on arcgiswebservices and arcgissoc for every folder and database I can think of (and set privileges).&amp;nbsp; I registered the featureclass as versioned.&amp;nbsp; I have impersonation=false.&amp;nbsp; There is a separate apppool for arcgiswebservices.&amp;nbsp;&amp;nbsp; I think I have it set up correctly...if I didn't would I be able to delete a feature from the services directory??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only thing I can think of is that we have our gis on one web server, and access it through another.&amp;nbsp; So, the web address for our website is mywebserver2, and the post goes to our gis server at mywebserver.&amp;nbsp; We therefore have an "Internet Guest Account" set up.&amp;nbsp; Not sure what really needs to be done with this, if anything??&amp;nbsp; I have tried to grant the user "agsadmin" rights--just to test--to no avail.&amp;nbsp; Everything else on the website seems to work, so I can't imagine that this is the issue.&amp;nbsp; Thought I would throw it out there, though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone have any ideas why this would work in the services directory but not through REST?&amp;nbsp; Suggestions on the best way to make the call besides "window.open"?&amp;nbsp; (I was trying to find the most straight-forward way to do it). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need it, here is the link to the post I was trying to get answers from:&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/45794-Unable-to-apply-edits?p=164742#post164742" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/45794-Unable-to-apply-edits?p=164742#post164742&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 17:57:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/help-can-t-edit-featureservice/m-p/187795#M890</guid>
      <dc:creator>LisaT</dc:creator>
      <dc:date>2012-01-19T17:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help! can't edit featureservice</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/help-can-t-edit-featureservice/m-p/187796#M891</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;Have you had a chance to look at this editing sample? This sample shows example of how to add and delete features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ed_default_editingwidget.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ed_default_editingwidget.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 15:40:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/help-can-t-edit-featureservice/m-p/187796#M891</guid>
      <dc:creator>RaviNarayanan</dc:creator>
      <dc:date>2012-01-20T15:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help! can't edit featureservice</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/help-can-t-edit-featureservice/m-p/187797#M892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ravi, thanks for your response.&amp;nbsp; I am actually utilizing the REST API as outlined here: &lt;/SPAN&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/SDK/REST/index.html"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/SDK/REST/index.html&lt;/A&gt;&lt;SPAN&gt; as opposed to dojo.&amp;nbsp; I wish we were utilizing dojo, but unfortunately the decision was made to internalize the library.&amp;nbsp; Do you have any suggestions for the ArcGis Server link way of doing things?&amp;nbsp; It seems as if the V3 library has not been updated for featureserver functions, so I am making my own calls via the http addresses with parameters (as I outline above).&amp;nbsp; Queries work, edits don't.&amp;nbsp; However, I CAN edit via the services directory.&amp;nbsp; What am I doing wrong??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 20:58:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/help-can-t-edit-featureservice/m-p/187797#M892</guid>
      <dc:creator>LisaT</dc:creator>
      <dc:date>2012-01-23T20:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help! can't edit featureservice</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/help-can-t-edit-featureservice/m-p/187798#M893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;However, if I use the same url: window.open("myservice/ArcGIS/rest/services/folder/myfeatserv/FeatureServer/0/deleteFeatures?objectIds=6&amp;amp;where=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;f=html");&lt;BR /&gt;I get an "unable to delete features" error.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You seem be to sending the request using HTTP GET. Editing operations support HTTP POST only. Can you please make sure that the request is using POST instead of GET?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 15:58:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/help-can-t-edit-featureservice/m-p/187798#M893</guid>
      <dc:creator>RaviNarayanan</dc:creator>
      <dc:date>2012-01-26T15:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help! can't edit featureservice</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/help-can-t-edit-featureservice/m-p/187799#M894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ravi, I have adjusted my code and have finally gotten deletes to work!&amp;nbsp; Both deletefeatures and applyedits with a 'deletes' parameter works.&amp;nbsp; However, I cannot get updates or adds to work.&amp;nbsp; If I use applyedits in the same way as I use deletes, but instead pass an 'adds' or 'updates' parameter...nothing happens.&amp;nbsp; To make sure the data is in the correct format, I actually do a 'query', then use the attributes and geometry returned to pass into 'updates' (after changing an attribute).&amp;nbsp; I also use the geometry returned to pass into adds, with changed attributes (and NOT passing in OBJECTID).&amp;nbsp; When looking in Firefox, I get the following as (for an add):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;POST mywebserver/ArcGIS/rest/services/myfeatserc/FeatureServer/0/applyEdits&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(in the POST tab)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Parameters: application/x-www-form-urlencoded&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; adds: [{geometry:[{x:-101.7599999997887,y:33.880000000046806, spatialReference:{wkid:4326}}], attributes:{ChngAtt:whatever}}]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f: json&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Source:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;adds=%5B%7Bgeometry%3A%5B%7Bx%3A-101.7599999997887%2Cy%3A33.880000000046806%2C%20spatialReference%3A%7Bwkid%3A4326%7D%7D%5D%2C%20attributes%3A%7BStation_Na%3Awhatever%7D%7D%5D&amp;amp;f=json&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the same method to post as I do with delete, so I get THE SAME in firefox with a delete...except there is not an "adds" parameter, there is a "deletes" with an objectid listed.&amp;nbsp; I am only selecting one feature to update/add at this time so that the URL does not get too long.&amp;nbsp; To test, I have also tried sending parameters:&amp;nbsp; [{geometry:[{x:-101.7599999997887,y:33.880000000046806}], attributes:{ChngAtt:whatever}}]&amp;nbsp; (no spatialReference)&amp;nbsp; and&amp;nbsp;&amp;nbsp;&amp;nbsp; [{geometry:{x:-101.7599999997887,y:33.880000000046806}, attributes:{ChngAtt:whatever}}]&amp;nbsp; (no brackets around x &amp;amp; y).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions as to what the applyedits method is looking for??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 16:45:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/help-can-t-edit-featureservice/m-p/187799#M894</guid>
      <dc:creator>LisaT</dc:creator>
      <dc:date>2012-01-31T16:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help! can't edit featureservice</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/help-can-t-edit-featureservice/m-p/187800#M895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Got it!&amp;nbsp; My text was getting converted and no quotes were being sent.&amp;nbsp; So, the new value "whatever" above did not have quotes.&amp;nbsp; This caused the update/add to fail.&amp;nbsp; Changed the code to make sure these are added, and everything works now!&amp;nbsp; Oh, also have to take out the spatialReference part of the geometry.&amp;nbsp; These are just points, but it should get me started.&amp;nbsp; Thanks for your help, Ravi!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 19:50:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/help-can-t-edit-featureservice/m-p/187800#M895</guid>
      <dc:creator>LisaT</dc:creator>
      <dc:date>2012-01-31T19:50:30Z</dc:date>
    </item>
  </channel>
</rss>

