1

I have a geodatabase featureclass that I need to add a field to. I can open this file in ArcMap and make all the edits I need, adding fields, calculating those fields, etc., but when I try to replicate the results in Python using the Add Field tool, I get this error message:

ERROR 000499: table is not editable

Failed to execute (AddField).

The file is stored in a file geodatabase, and I've made sure no other Arc programs are accessing it, so locks shouldn't be an issue as far as I can tell.

Why would I be able to edit the file in one program but not the other? How can I fix this?

It seems like it also works to bring up the python window within ArcMap/Catalog. The problem only exists when I use the Python Shell outside of Arc.

closed as off-topic by PolyGeo Aug 22 '16 at 20:18

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt will help others to help you. See: How to create a Minimal, Complete, and Verifiable example." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.