As part of a larger python program, I am trying to join a table and a feature class, both residing in a gdb. My code for the join is as follows:
inFeatures = wksp + "\[name of file, which is pretty long]"
featField = "GenericID"
joinTable = wksp + "\joinGIDcounts"
tableField = "GID"
print ("joining tables...")
arcpy.JoinField_management (inFeatures, featField, joinTable, tableField)
print ("end script")
I have these issues:
1. the program never gets to the last print statement, it just keeps running
2. when I close the program, it says "your program is still running, do you want to kill it?", and I say yes.
3. I check the inFeatures table in ArcMap and the fields from joinTable are there and joined correctly
4. I try to delete the fields, because this is only a test of the first 200 records of a table with a few thousand records
5. I get a message saying cannot delete fields because of an existing lock. But I killed the Python program when I closed it.
Does anyone know why I am stuck here?
Many thanks