Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

arcpy.CalculateField_management Error

$
0
0
I'm using the arcpy lib in arcgis 10.1 and to work on a script. When i use the arcpy.CalculateField_management i'm getting an error . Could someone help me identify whats wrong with the expression below. I'm using VB because when i use the python calculator, python crashes at the end of the calculation so VB is the only option i have. Notice that this expression work good when using python but like i mentioned, when the python option is used. python crashes at the end of the script.

arcpy.CalculateField_management("TAZ_un_Buffer_Dissolve.shp", "totalArea","[shape.area]", "VB", "")


Code:

Traceback (most recent call last):
  File "D:\CubeAlbuquerque\AlbuquerqueNewTAZ\02_Applications\02_Transit_walk_Acc
ess\ptaccess_SM.py", line 55, in <module>
    arcpy.CalculateField_management("TAZ_un_Buffer_Dissolve.shp", "totalArea","[
shape.area]", "VB", "")
  File "C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy\management.py", li
ne 3128, in CalculateField
    raise e
arcgisscripting.ExecuteError: ERROR 999999: Error executing function.
Failed to execute (CalculateField).


Viewing all articles
Browse latest Browse all 2485

Trending Articles