AnsweredAssumed Answered

Can't create features on newly created feature class layers

Question asked by RehmSoftware on Dec 4, 2017
Latest reply on Dec 20, 2017 by temge-esristaff



I'm currently dealing with a strange error message: I'm creating a new feature class (via CreateFeatureclass_management) and adding fields (via AddField_management/AddFields_management) in C# with the Geoprocessing class and that works fine. But after creating the layers and adding the fields I'd also like to create features on these layers.. so I switch to the "Edit" ribbon and click on "Create". I click the vertices of my polyline (or whatever geometry) and when I hit F2 to finish the process, an error message appears in the "Create Features" pane: "Failed to create new feature(s). This data is currently locked by another user and cannot be saved".

But the weird thing is: There's no error message when calling these management-functions via arcpy. I think it's related to adding the fields to the layer since commenting out these calls in my code also results in no error message.. but I need to add fields to new and existing feature layers so leaving this out is not an option for me.


I attached a sample to reproduce the behaviour. The class "Layer" servers as a lightweight wrapper for feature layers and the management-functions are called in Layer.AddToMapAsync and Layer.SetupFieldsAsync.


ArcGIS Pro is version 2.0.1 and the SDK is

Thanks in advance for any help!


Best Regards