TestSchemaLock does not work and returns a result of "ERROR".
Last Published: August 25, 2014No Product Found
Bug ID Number
NIM011046
Submitted
August 17, 2007
Last Modified
June 5, 2024
Applies to
No Product Found
Version found
9.2
Version Fixed
9.3
Status
Fixed
The bug has been fixed. See the Version Fixed and Additional Information, if applicable, for more information.
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)