laptop and a wrench

Bug

TestSchemaLock does not work and returns a result of "ERROR".

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM011046
SubmittedAugust 17, 2007
Last ModifiedJune 5, 2024
Applies toNo Product Found
Version found9.2
Version Fixed9.3
StatusFixed

Workaround

Possible work-around (forum posting http://forums.esri.com/Thread.asp?c=93&f=1729&t=251511):# Test Schema Lock on output layer# @9.1 - full path to featureclass was valid# @9.2 - use out featureclass name after declaring gp.workspace# Full path to featureclass won't work (always returns ERROR)outfc = "Database Connections\\conservation.sde\\CONSERVATION.StateHeritageSites"#Get workspace of output featureclassoutws = os.path.dirname(outfc)gp.workspace = outws ###required#Get name of output featureclassoutfcname = os.path.basename(outfc) lockTest = gp.TestSchemaLock(outfcname)

Steps to Reproduce

Bug ID: NIM011046

Software:

  • No Product Found

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options