Select to view content in your preferred language

Trying to delete fields, but get 'Can't get exlusive schema lock ...' error

691
4
10-01-2010 06:11 AM
deleted-user-rQoEFM5qzbHE
Deactivated User
I have set the OverWriteOutput, but I can't seem to delete a couple fields from a shapefile. I rebooted my computer in case something was not releasing in the background, but still get the error.

The rest of the error says that the shapefile is 'Either being edited or in use by another application' The only application open is ArcMap, and I am the only on trying to do anything to the shapefile.
0 Kudos
4 Replies
DanPatterson_Retired
MVP Emeritus
is the table open in arcmap?
0 Kudos
deleted-user-rQoEFM5qzbHE
Deactivated User
No, it isn't. I am able to calculate a different field within the shapefile shortly before I try to delete a field.
0 Kudos
DanPatterson_Retired
MVP Emeritus
that might account for the lock, try them as separate processes
0 Kudos
deleted-user-rQoEFM5qzbHE
Deactivated User
I am not sure what you mean by different processes. Do you mean I should create two scripts, where the second deletes the fields? That kind of defeats the purpose of this thing. I could just as easily go into ArcCatalog and delete them then, but I am trying to automate this whole process.

Thanks
0 Kudos