Solved! Go to Solution.
Hello,
I don't know if any of this will help, but I had problems (and still do) with editing.
In order for my edits to work there are 2 things I must do.
1. Ensure my layer in SDE was created by manually adding the fields, and NOT by loading in a layer from shapefile or another SDE layer. It's crazy, and ESRI can't reproduce this behaviour, but it's true for me, I have to create a new feature class and add the fields one by one with ArcCatalog rather than importing the fields.
2. My layers in my MXD feeding the service must connect to SDE using an SDE service and NOT with Direct Connect.
It took me ages to work these out and get my editing working, but so long as I do the above in addition to the usual stuff then I can get it to work.
Mark.
ArcGIS Server 10 introduces feature services, which expose access to vector feature geometries and attributes. A great benefit of feature services is the ability to expose feature editing through JavaScript, Flex, and Silverlight applications. Feature services are published from map documents, and the source datasets are required to reside in a single ArcSDE geodatabase.
feature.attributes['OBJECTID'] = Number(feature.attributes['OBJECTID']);
featLayer.applyEdits (null, [feature], null);
We were getting the "Update Failed" message in Collector on iOS 8 whenever we tried to edit a feature in a polygon layer. The only solution we were able to come up with was to republish the service with geometry editing disabled. You're then able to update the attributes successfully. Hopefully this issue can be addressed in a future version of Collector. For what it's worth, the green Esri iOS app exhibited the same behavior.