Select to view content in your preferred language

Add Feature Failed

3415
5
01-05-2012 05:38 AM
RandellMcGlynn
Emerging Contributor
Hi, I'm having an issue with my web map. I have the editing feature enabled, but when I try to add a point to the map, it says "Add feature failed". However I am able to edit existing points successfully. I have another layer that I've used with testing and that one works fine. The only difference I can think of between that one and this one is that that I have this new one move the edits to base when I registered it as versioned. So that way the edits show up in SQL Server. Could that cause this issue?

Thanks.

**UPDATE**
I tried unregistering it as versioned and registering as versioned again without checking the box to move edits to base, and that did not help. I'm relieved actually, I kind of need to be able to view the changed in SQL Server. Any thoughts are appreciated.

I did have a thought however. I have some of the fields not allow null values with no default value. Could this be the issue?
Tags (2)
0 Kudos
5 Replies
RomanSmolinski
Occasional Contributor
Hi,
Did you solve this problem? I've got the same problem with Win 2008 Server, PosgreSQL and Flex Viewer 2.5.
Roman

Hi, I'm having an issue with my web map. I have the editing feature enabled, but when I try to add a point to the map, it says "Add feature failed". However I am able to edit existing points successfully. I have another layer that I've used with testing and that one works fine. The only difference I can think of between that one and this one is that that I have this new one move the edits to base when I registered it as versioned. So that way the edits show up in SQL Server. Could that cause this issue?

Thanks.

**UPDATE**
I tried unregistering it as versioned and registering as versioned again without checking the box to move edits to base, and that did not help. I'm relieved actually, I kind of need to be able to view the changed in SQL Server. Any thoughts are appreciated.

I did have a thought however. I have some of the fields not allow null values with no default value. Could this be the issue?
0 Kudos
philippschnetzer
Frequent Contributor
is your 'shape' field visible in your layer?  I think ArcGIS Server needs to be able to see this field for editing to be successful.
0 Kudos
RomanSmolinski
Occasional Contributor
Hi,
@philipp37 thanks for reply.
I solved the problem. That was my mistake. I mixed the layer sources (test and production servers).
Thanks,
Roman
0 Kudos
daveostrander
Frequent Contributor
is your 'shape' field visible in your layer?  I think ArcGIS Server needs to be able to see this field for editing to be successful.


I am having a similar issue. I am unable to edit a feature in the ArcGIS Viewer for Flex. I get the same error "Add Feature Failed". I checked and the 'shape' field is visible. Any thoughts?

Dave-O.
0 Kudos
daveostrander
Frequent Contributor
There are a few things that can lead to this problem. The shape field needs to be visible, the objectID field also needs to be visible, and there are some issues with having z values in the data. To fix I made sure that shape and objectID fields were visible and recreated my feature class to not have z values. This was done using flex 2.4 and ArcGIS server 10.0. Not sure if the same rules would still apply with 10.1.
0 Kudos