BrokenLegMike

Calculate Field Returning Error

Discussion created by BrokenLegMike on Aug 26, 2011
Latest reply on Aug 29, 2011 by BrokenLegMike
Hello all. I have been having issues with running the Calculate Field tool in python. I have an older script that I used for the first time in a while and it was throwing the following error:

ERROR 999999: Error executing function.
Expected end of statement
Failed to execute (CalculateField).



I created a simple model using only the calculate field, set up a ploygon feature class with a field called "SITE" and exported to python. I ran it again, and the same error came up. I haven't been able to find a solution on the net. Can anyone suggest what I may be missing?

import arcpy
# Local variables:
TESTFC = "Z:\\Figure_Sourcing\\Figures\\Geodatabase\\TESTGDB.gdb\\TESTFC"

# Process: Calculate Field
arcpy.CalculateField_management(TESTFC, "SITE", "D01 Site", "VB", "")

Outcomes