Select to view content in your preferred language

FeatureLayer.SaveEditsFailed is never fired

615
2
08-03-2010 03:02 AM
egismazeika
Emerging Contributor
I've a featureClass with unique index on one custom field. The featureClass is published as a featureService. When I try to create a new feature (adding Graphic to Graphics collection) this operation should fail because of index violation. Actually it DOES fail as no feature is created. But FeatureLayer.SaveEditsFailed is never fired.
Instead EndSaveEdits event results with EndEditEventArgs.Success == true.

Furthermore, EndEditEventArgs.Results.AddResults[0] returns a fake objectId value - that feature was never created.
0 Kudos
2 Replies
JenniferNery
Esri Regular Contributor
Thank you for your post. We are looking into this.

Jennifer
0 Kudos
AliMirzabeigi
Emerging Contributor
Dear Egis Mazeika,

We have confirmed this issue in our REST services and are currently working on the resolution. The fix will be available soon.
0 Kudos