AnsweredAssumed Answered

updateFeatures fails on Feature Layer

Question asked by Fedakm on Oct 25, 2015

Hello,

 

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:

{

"error": {

  "code": 400,

  "message": "Unable to complete operation.",

  "details": [

  "Object is Missing."

  ]

}

}

 

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.

 

The features I send look like this:

 

[{"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}}]

Outcomes