I am using ArcGIS and arcpy to process some shapefiles. When I try to use the function
arcpy.JoinField_management()
the program stops and Python says that the tool is not licensed. This confuses me because the documentation for the tool does not ask for any special licenses.
http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000065000000
An extract of my code and the error follow (the code is quite long but I run it ineractively to check it as I go).
import arcpy
arcpy.env.workspace = 'C:/Data/'
arcpy.CheckOutExtension('Spatial')
outZSaT = arcpy.sa.ZonalStatisticsAsTable('mb06.shp', 'MB_NUM', 'slope', 'sum_slope.dbf', 'DATA', 'SUM')
arcpy.JoinField_management('mb06.dbf', 'MB_NUM', 'sum_slope.dbf', 'MB_NUM')
Traceback (most recent call last):
File "<pyshell#2>", line 2, in <module>
workspace + '/sum_slope7.dbf', 'MB_NUM')
File "c:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\management.py", line 3667, in JoinField
raise e
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000824: The tool is not licensed.
Failed to execute (JoinField).