I've hit a wall trying to trouble shoot my script issue. I am trying to project data from a versioned geodatabase to a local geodatabase. My script has been working fine for months but all of the sudden i keep getting a schema lock error on the same dataset, the problem is, i can't find a lock in database Administration. So I'm performing the following code to investigate:
print(arcpy.TestSchemaLock(dataset))
arcpy.Project_management(dataset, "dataset_reprojected", PROJECTION)
TestSchemaLock comes back as True, ie: should be open. But the Project function continues to come back with ERROR 000464 identifying a schema lock.
python interpreter coming from Pro version 3.3.2