[GIS] arcpy join field tool is not licensed

arcpyerror-000824spatial-analyst

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).

Best Answer

This issue can be resolved by installing ArcGIS for Desktop SP3 (or the current SP4) http://files.eaglegis.co.nz/ArcGIS%2010/ArcGIS%2010%20Service%20Pack%204/ArcGIS%20For%20Desktop%20(Basic,%20Standard,%20Advanced)/

Related Question