import arcpy from arcpy import env env.workspace = r"\\TestServer\TestCases_Geodatabase.gdb" #------------------------------------------------------------------------------- # Append selected parcels to Cases # def AppendParcelsToCases(): input = "Parcel" target = "Cases" schemaType = "NO_TEST" try: arcpy.Append_management(input, target, schemaType) except Exception as e: arcpy.AddError("Error creating case feature! \n" + e.message)
Executing: CreateCase Start Time: Fri Mar 30 11:01:12 2012 Running script CreateCase... Error creating case feature! ERROR 999999: Error executing function. Cannot acquire a lock. Cannot acquire a lock. [The table Cases is being written by another process.] Cannot acquire a lock. [The table Cases is being written by another process.] Failed to execute (Append). Completed script CreateCase... Failed to execute (CreateCase). Failed at Fri Mar 30 11:01:16 2012 (Elapsed Time: 4.00 seconds)
Solved! Go to Solution.