Select to view content in your preferred language

Edited features disappear

5224
15
04-26-2011 05:07 AM
CurtWalker
Deactivated User
I have added the Editor component to a simple map service with 7 line layers added as Feature Layers.  A Geometry Service is running and referenced in my mxml.  Upon loading the map service in Firefox I can select which layer I want to edit and digitize new lines....but the new lines always disappear when I double-click to complete the new feature.  What could be causing this?
Tags (2)
0 Kudos
15 Replies
CaseyBentz
Frequent Contributor
When you have the mxd, that was used to create the service, open in ArcMap, can you edit the features?
0 Kudos
CurtWalker
Deactivated User
Yes I can make and save edits to the feature classes in ArcMap.  Thanks for sticking with me on this.
0 Kudos
CaseyBentz
Frequent Contributor
I am running out of ideas. 

In my editing applications I use the creationComplete event rather than the initialize event to set the layers for my editor. Altough, the esri sample uses the initialize event, so I doubt that will work.

Have you tried using just one feature layer to see if that works?

I know you said your geometry service is working, but have you tried using the ArcGIS Online service?
<esri:GeometryService id="myGeometryService" url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"/>

Can you edit existing features?
0 Kudos
CurtWalker
Deactivated User
I have tried with only one layer and it was no different.  Just now I tried ESRI's online geometry service as you suggested but I'm still getting the same error.  Thanks for suggesting this though because it helps to rule out the Geometry service being the problem.

Yes I can edit existing features but the edits will only remain as long as the page has not refreshed.  If I refresh the page the edits vanish and the features return to their original states.

There must still be a permissions issue with my feature classes but I'm at a loss as to what.
0 Kudos
CaseyBentz
Frequent Contributor
I agree that it must be a permissions issue.  When we went to ArcGIS Server 10 and tried editing, the only problem we had was the 3rd party extension issue.  Once we created feature classes to not be tied to this extension, it just worked.  The only time it hasn't worked is when we forget to grant the appropriate permissions.  I have no idea that this exists, but SDE might log when a specific user attempts to make an edit and get denied.  Or you could try your edit, then go to the ArcGIS Server manager page and check the log files there.

Good luck.
0 Kudos
CurtWalker
Deactivated User
Well this turned out to be a real forehead-slapper.  My ESRI contact was kind enough to do a remote session with me and troubleshoot the issue.  We had been working for a good 45 minutes before he noticed that ALL of the layers in my service were the dreaded Polyline ZM.  I come across this about once a year usually when working on data converted from CAD.  It is rare enough for me that I tend to forget about it.  I don't feel as bad because nobody including the ESRI staff thought of it either.

We built fresh feature classes and imported the data, nixing the Polyline ZM type.  Now everything seems to be working as advertised.

Thanks again for your help.
0 Kudos