I am adding a field to a feature layer in a geodatabase using AddField in Model builder but I am returned wit the error message "
ERROR 000499: table is not editable.
When I try to manually edit the same layer using start editing it is editable. I checked for Locks on the geodatabase and there are no lock files on that work space. I wonder if any body can help resolving this problem
Hossam
Solved! Go to Solution.
I figured out whats the problem. It was that this layer is joined to another table. Removing the join solves the problem and addField in the model works fine. Thank you all.
Check the link provided below.
000499: Table is not editable.—Help | ArcGIS Desktop
Hopefully, it helps you.
Are you trying to edit the feature class while adding fields? This will prevent you from adding it. Fields can only be added outside an edit session.
Kevin is correct, stop the edit session, add the field then start the edit session again.
No the workspace is not open for editing while trying to add the field programmatically in the model. It is not the issue. Thank you.
I figured out whats the problem. It was that this layer is joined to another table. Removing the join solves the problem and addField in the model works fine. Thank you all.