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.
feature.attributes['OBJECTID'] = Number(feature.attributes['OBJECTID']); featLayer.applyEdits (null, [feature], null);
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.
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.
Yes they are in two projections. I really didn't think about it I just used a cached service I already had. I will make the changes and see what happens.Thanks for the help,James
I had it turned off. I was trying to get rid of the Objectid_1. It should work now. Sorry about that. I ask for help then turn off the service.
It doesn't look like you are actually using a proxy for the POST. That's probably not it but just an fyi.I wonder if your OBJECTID_1 field name is causing some confusion. It might be looking at your other field named OBJECTID which is null. That might cause an incorrect parameter error.
Thanks for the reply; however, I don't think that is my problem. I am just adding a point feature so the geometry is not very big. This proxy is the same as I have used on other servers so I think it is also configured correctly.Thanks for the suggestion.
I am trying to create an application similar to the ESRI citizen request sample. I am running into a problem where I am unable to apply my edits. The error code is:{"error":{"code":400,"message":"Unable to complete operation.","details":["Unable to apply edits"]}}I have:registered the feature class as versionedpermissions have been given. I am able to edit without problem in ArcMap; is there something else I need to do.checked to make sure editing is enabled on the serviceAny help is greatly appreciated.James
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.