Select to view content in your preferred language

Unable to complete operation

4857
6
03-19-2013 06:04 AM
TheoReaves
Deactivated User
I am getting this JSON return on a Delete that reads:

{
 "error": {
  "code": 400,
  "message": "Unable to complete operation.",
  "details": [
   "Another application is currently editing the version. [sde.DEFAULT]"
  ]
 }
}


Although, it seems to remove the item from the data base.  But,  the point will still show in the feature layer.  Sorta... It will show, then it will disappear.  Then later it seems to show again.  However, if you look at the table, the record is removed.  When it shows, you can click the point and get the attributes for it as if it is there though.
0 Kudos
6 Replies
arethasamuel
New Contributor
Did anyone solve this problem?
0 Kudos
ChrisSeabrooke
Deactivated User
I'm getting this same error using Silverlight API 3.0, SL 5, with ArcGIS Server 10.1-- does anyone know how to fix? Is there a setting on the server that allows concurrent editing?
0 Kudos
BenjaminMercier
Regular Contributor
Hi,

I also get the same problem. I don't know if it's possible to avoid that. Do you have some news?

Thanks,
Ben
0 Kudos
KenBurcham
Deactivated User
I didn't find an outright solution, but I changed how I was working with the map and it works now. 

What I wanted was for a user to be able to add a point to a map and (if they wanted to move the point) they could click a different spot and the point would appear to move:  it would add the new point to the new spot and then remove the previous point they added.  This worked fine the first couple of points the user clicked, but then I would start getting the above error.  I changed my strategy to just working directly on the map and not calling applyEdits with each click.  Then when the user finishes with the point they want, they click a save button. 

Not a solution, put probably a better implementation for my particular case.  The feature class backing my service was registered as versioned, so I don't know why it seemed to be having trouble with multiple edits...

ken.
0 Kudos
BenjaminMercier
Regular Contributor
Hello,

If it could help someone, Esri support answered about my problem which was this 400 error after applyEdits.

The (perfectible) solution was to limit to limit the maximum number of instance at 1 as parameter when the service is published. If you have more instances an applyEdits request will be sent to the AGS Server, and if the server is a bit overload, it will start a new instance. Your request will be processed by the new instance. Then, AGS will process that like if it's a new user (a different one) so it will lock the version while the other instance is working on edition. That was why I was unable to complete edition.

I'm not sure f it's really clear, but I hope it helps.

Ben
0 Kudos
ThomasRoussell
Regular Contributor
I had a similar problem and here are the steps I took to resolve it.

When sharing the service, under Pooling I tried setting "maximum number of instances per machine" = 1 but that did not work.
I tried exporting to XML Workspace and File Geodatabase and then  re-importing but that did not work.

So I did this:

Export to Shapefile
Delete OBJECTID
keep Repairing Geometry until no errors remain
Import into SDE
Rename fields and aliases that were corrupted during export to shape file.
Reset Domains on Fields
Register as versioned
Create MXD
Share as service and under Pooling set "maximum number of instances per machine" = 1
0 Kudos