Select to view content in your preferred language

Editor Widget not saving

1892
11
11-19-2010 05:50 AM
WilliamDonahue
Emerging Contributor
I've run into a slight problem. The Editor Widget is not saving any edits i make during a session. Even when i try to use not auto save and push the save button. Below i have the code for the widget and one of my feature layers.

<esri:EditorWidget x:Name="Editor" Margin="8,38,8,0" VerticalAlignment="Top"
             Map="{Binding ElementName = Map}"
 LayerIDs="Service, Power, Ground, CB Cable"
 AutoSelect="False"
 GeometryServiceUrl="<servername>/ArcGIS/rest/services/Geometry/GeometryServer"
 ShowAttributesOnAdd="True" />

<esri:FeatureLayer ID="CB Cable"
             Url="http://<servername>/ArcGIS/rest/services/Codeblue/FeatureServer/1"
 MouseLeftButtonUp="FeatureLayer_MouseLeftButtonUp" DisableClientCaching="True"
             AutoSave="False"
 Mode="OnDemand" OutFields="*"></esri:FeatureLayer>



All my data is stored on an Enterprise SDE server and my data is versioned. i'm just confused because i can edit the the OTB app from ArcGIS Server.
0 Kudos
11 Replies
WilliamDonahue
Emerging Contributor
I forgot to add that my map services are pooled.
0 Kudos
JenniferNery
Esri Regular Contributor
Can you subscribe to the Feature Layer's EndSaveEdits and SaveEditsFailed event?  Also can you try to run Fiddler maybe there's more useful information there that we are missing.
0 Kudos
WilliamDonahue
Emerging Contributor
I'll get started on that stuff and get back to you. in the mean time. I found out that the editor widget will not operate unless my map has the measure action attached to it as a Trigger.
0 Kudos
WilliamDonahue
Emerging Contributor
Is there anything specific you would like me to write as the code for the subscriptions?
0 Kudos
WilliamDonahue
Emerging Contributor
I finally got the chance to log onto my server machine. Apparently every time i attempt to save the feature layers i get an SOC error and it has to reboot the SOC. If anyone has any ideas why. This only seems to be effecting this application.
0 Kudos
WilliamDonahue
Emerging Contributor
The SOC stopped crashing but i get the following error code from fiddler

{"error":{"code":400,"message":"Unable to complete  operation.","details":["Unable to apply edits"]}}

I don't know why i can't. I believe it might have to do with the layer i am trying to edit because other applications seem to work fine.
0 Kudos
JenniferNery
Esri Regular Contributor
Have you tried running Fiddler? Or applying edits through your web browser? It would be good to try this out too to make sure that the service allows edits. If doing the edit from your web browser also fails, then maybe it is your feature service.  You might want to revisit this help page (if you haven't already): http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#//009300000023...
0 Kudos
WilliamDonahue
Emerging Contributor
What data are you looking for from Fiddler? I have been running it for a while. and when i apply edits it returns the error listed in my previous post.

When i try to post a blank point at 0,0 on my coord system. i get the error of invalid graphics. idk if that is because i am being dumb or something.
0 Kudos
WilliamDonahue
Emerging Contributor
Issue Resolved.

It ended up being a corrupted feature layer file
0 Kudos