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

Add/Calculate Field within a python script

$
0
0
Hi all,
I am trying to build a tool in python that selects by location, copy to new feature class, add a field to the new feature class, and calculate the field that was just added in the script. The first part of the script works well, however it stops working when adding field/calculating field. I am not quite sure why...
The error is: ERROR 000728 on CalculateField: Field Does not exist. In my script I specifically added a python line to add a line.
What lines in this script are wrong (adding field or calculate field, both?)
Thanks,
Alex

PS: The calculate field first purpose was to do the following: the field "Update" = "arcpy.GetParameter(3)" (the text will be entered by the tool user.
Attached Files

Viewing all articles
Browse latest Browse all 2485

Trending Articles