Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I've created a new feature layer where I am allowing users to add polygons. It has a few attributes, but I am not setting them on the graphic when I add it to the feature layer's graphics collection.

When the Feature layer tries to save, it completes, firing the EndSaveEdits, but the EndEditEventArgs class is returning not successful, and the AddResultscolleciton returns:

ErrorCode: -2147216100

ErrorDescription: Error while inserting populated row into Insert Cursor

GlobalID: null

ObjectID: -1

Success: False

I found the link below, saying it could be permissions, but my SDE admin says I have all the neccessary permissions.

http://forums.arcgis.com/threads/31302-Insert-(add)-fails

What the heck is going on with this feature layer? Thanks for your help!

share|improve this question
    
"but I am not setting them on the graphic". Did you try setting them to just some default value (like null)? –  Kirk Kuykendall Jun 15 '11 at 22:23
    
I am so new to the ESRI api, that I don't know if it requires me to pre set all of the parameters. I was going to test, but our IT managers have been updating the server, and I have not been able to try setting the attributes manually. Do I have to set all of the attributes on the client before I Save? –  N8T Jun 17 '11 at 14:04
    
I recall having to add attributes with null values. You might try testing using Esri's demo featureserver. That way others can reproduce any issues you find. –  Kirk Kuykendall Jun 17 '11 at 14:10
    
Thanks Kirk. I will try to set some defaults for the graphics attributes to see if the save completes successfully. –  N8T Jun 17 '11 at 14:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.