Feature Service on 2D polyline. Error: "The geometry is not Z-aware"

Discussion created by straatvark on Sep 7, 2012
Latest reply on Dec 12, 2014 by morehavoc

On ArcGIS 10.1, I'm using the the 'Featire Service' capabilities to add, change & delete features on point & line feature classes.

On 2D points points I can sucessfully do all 3 actions.

The problem is when I do the same on a 2D polyline that is NOT z-aware. (This is confirmed when browsing the feature service endpoint.) When submiting a 'addfeature' request via the ArcGIS web test interface, I keep on getting a error message "Unable to complete operation. The geometry is not Z-aware" From the (documentation ) it states "You can edit and delete features that have z-values."  When I create a feature class that is z-aware, I can edit it.

Does that mean I can't edit none-Z-aware feature classes? The geometry documentation make me assume that I should be able to do it.

I did try things like adding default z values in the feature service capabilities, adding a z value in my geometry JSON, but no change in the message.

Anny feedback would be much appreciated.

The JSON I use are:
"hasZ" : false,
"hasM" : false,