Select to view content in your preferred language

Unable to save new features, but can edit existing shapes and attributes

1315
1
01-13-2011 01:09 AM
MarkSmith
Occasional Contributor
We are developing the JavaScript API V2.1 and trying to work with the editing task but we have a problem where we can't save new features.

We are using ArcGIS Server V10 Service Pack 1 (IIS7) on Windows Server 2008 and SQL Server 2008 with SDE V10 Service Pack 1 with versioned layers.

The strange thing is we can modify existing features using the out-the-box editor widget, reshape, move and change attributes, but as soon as we draw a new point, line or polygon on the map and save, the 'working' bar appears as though it is trying to save, but the shape just drawn vanishes off the map and is not saved to the layer in the database.  The MXD used for the feature service can be opened in ArcEditor and we can create new shapes fine, so we know the permissions within the MXD are fine.

We have used the ESRI editor sample code with our own services (so I'm not sure there is any value posting the code here as it is the same as the sample), set up a geometry service and using a proxy page as required, but we just can't digitise new features.

Can anyone suggest a reason for this, and/or a solution?  We have a call open with our ESRI support at the moment, but we're not getting very far, so thought I would quiz the forums.

Thank you,

Mark
0 Kudos
1 Reply
MarkSmith
Occasional Contributor
I appear to have solved it (or highlighted a problem depending on your point of view).

We were adding our layers to the MXD for the service using a Direct Connect to the SDE database.  Doing it this way stopped us from saving new shapes.

I just created a new MXD using layers added through a 'standard' connection to the SDE database using the SDE service (not direct connect), and now we can save new features through the API, but only if the layers are registered as versioned with the option to save edits to base ticked.

Can anyone else confirm this behaviour please to see if it's just our system or a general problem (sorry, feature).  All this may be documented, but I haven't found it.


Thank you.
0 Kudos