<?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 updateFeatures fails on Feature Layer in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/updatefeatures-fails-on-feature-layer/m-p/57598#M2111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set up a feature service which is meant to be edited via the server REST API. The addFeatures endpoint works perfectly, however when I try to use updateFeatures, I get the following response:&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt; "error": {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "code": 400,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "message": "Unable to complete operation.",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "details": [&lt;/P&gt;&lt;P&gt;&amp;nbsp; "Object is Missing."&lt;/P&gt;&lt;P&gt;&amp;nbsp; ]&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The feature layer is versioned and ownership based permissions are on, however anyone is allowed to update. This seems to me more like I'm missing an attribute. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The features I send look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[{"geometry":{"rings":[[[-96.35172843933105,39.999470750892826],[-96.35172843933105,39.99966389309993],[-96.35117590427399,39.99966389309993],[-96.35117590427399,39.999470750892826],[-96.35172843933105,39.999470750892826]]],"spatialReference":{"wkid":4326}},"attributes":{"OBJECTID ":32943,"proragis_id":"eqerqer","parkid":"Null","park_id":null,"featurename":"Null","address":"Null","citymuni":"Null","county":"Null","state":"Null","streetnum":"Null","streetname":"Null","streettype":"Null","zip":"Null","reference":"Null","refcomment":"Null","park_acres":null,"acresource":"Null","yearopen":null,"parkstatus":"Null","statuscmnt":"Null","parktype":"Null","servicarea":"Null","mgtpriorty":"Null","landowner":"Null","ownertype":"Null","agencyname":"Null","agencytype":"Null","acqsource":"Null","acqmethod":"Null","acqcomment":"Null","devsource":"Null","devcomment":"Null","restricts":"Null","lwcfprot":"Null","otherprot":"Null","resprtcmnt":"Null","editor":"3153-46330","unit":"Null","unit_id":"Null","unit_acres":null,"lasteditor":"3153-46330","id":null}}]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Oct 2015 04:46:24 GMT</pubDate>
    <dc:creator>MichaelFedak1</dc:creator>
    <dc:date>2015-10-26T04:46:24Z</dc:date>
    <item>
      <title>updateFeatures fails on Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/updatefeatures-fails-on-feature-layer/m-p/57598#M2111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set up a feature service which is meant to be edited via the server REST API. The addFeatures endpoint works perfectly, however when I try to use updateFeatures, I get the following response:&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt; "error": {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "code": 400,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "message": "Unable to complete operation.",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "details": [&lt;/P&gt;&lt;P&gt;&amp;nbsp; "Object is Missing."&lt;/P&gt;&lt;P&gt;&amp;nbsp; ]&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The feature layer is versioned and ownership based permissions are on, however anyone is allowed to update. This seems to me more like I'm missing an attribute. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The features I send look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[{"geometry":{"rings":[[[-96.35172843933105,39.999470750892826],[-96.35172843933105,39.99966389309993],[-96.35117590427399,39.99966389309993],[-96.35117590427399,39.999470750892826],[-96.35172843933105,39.999470750892826]]],"spatialReference":{"wkid":4326}},"attributes":{"OBJECTID ":32943,"proragis_id":"eqerqer","parkid":"Null","park_id":null,"featurename":"Null","address":"Null","citymuni":"Null","county":"Null","state":"Null","streetnum":"Null","streetname":"Null","streettype":"Null","zip":"Null","reference":"Null","refcomment":"Null","park_acres":null,"acresource":"Null","yearopen":null,"parkstatus":"Null","statuscmnt":"Null","parktype":"Null","servicarea":"Null","mgtpriorty":"Null","landowner":"Null","ownertype":"Null","agencyname":"Null","agencytype":"Null","acqsource":"Null","acqmethod":"Null","acqcomment":"Null","devsource":"Null","devcomment":"Null","restricts":"Null","lwcfprot":"Null","otherprot":"Null","resprtcmnt":"Null","editor":"3153-46330","unit":"Null","unit_id":"Null","unit_acres":null,"lasteditor":"3153-46330","id":null}}]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 04:46:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/updatefeatures-fails-on-feature-layer/m-p/57598#M2111</guid>
      <dc:creator>MichaelFedak1</dc:creator>
      <dc:date>2015-10-26T04:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: updateFeatures fails on Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/updatefeatures-fails-on-feature-layer/m-p/57599#M2112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I realize this is an old thread and most likely not helpful for you, but posting for the community what we ran into..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a server side utility that uses the feature server 'apply edits' operations and that utility crafts a JSON payload based on the Esri API Spec.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We ran into a similar response at v10.8.1 but there was an extended error code -&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt; https://server:443/arcgis/rest/services/folder/service/FeatureServer/6/applyEdits?f=json, STATUS_CODE 200, 47 ms, POST&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR class=""&gt;&lt;TD&gt;Buffer="{"addResults":[],"updateResults":[{"objectId":15468,"success":false,"error":{"code":1011,"extendedCode":-2147467259,"description":"Object is Missing."}}],"deleteResults":[]}"&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, the server side utility had a bug where it was posting to the wrong layer ID (layer ID 6 in this case... it should have been layer id 0).&amp;nbsp; I think the error message "Object is Missing" is really saying that the underlying "Object ID" in that layer is missing...&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just some feedback.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;REF&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/services-reference/feature-service-error-codes.htm" title="https://developers.arcgis.com/rest/services-reference/feature-service-error-codes.htm"&gt;Feature service error codes—ArcGIS REST API | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2020 23:05:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/updatefeatures-fails-on-feature-layer/m-p/57599#M2112</guid>
      <dc:creator>pfoppe</dc:creator>
      <dc:date>2020-09-23T23:05:30Z</dc:date>
    </item>
  </channel>
</rss>

