Quantcast
Channel: Forums - ArcGIS for Desktop - General
Viewing all articles
Browse latest Browse all 2565

TestSchemaLock not working in ArcPy -Bug logged

$
0
0
This is more of an FYI:

I was trying to use the TestSchemaLock function in ArcPy and it wasn't detecting locks on the feature class I was attempting to edit. The issue is two-fold. (BTW I am in 10.1.1)

1. TestSchemaLock does not work when you run a tool with background geoprocessing.

2. TestSchemaLock does not detect the lock if you are running your Python tool from the same application that has the lock. Even though your script will crash and you are not actually able to edit it. For example, I had the dataset open in the Preview window in ArcCatalog, then I ran the tool in ArcCatalog. Tool crashes even when run in foreground.

Bug#: NIM088556

Viewing all articles
Browse latest Browse all 2565

Trending Articles