Greetings,
This is most likely a simple question but I just cant seam to lick it. I have this code that I want to calculate a field for me. the field is STRING, 8 Characters. There is a domain on this field with some coded values. I exported a dbf of the feature to confirm the value should be STAK. Every time I run this bad boy I get the attached error. I have tried both VB and PYTHON code but nothing seems to work (although the error reporting from python looks better).
I have a feeling that there is one simple thing I'm not doing, can someone please help?
import os
import arcpy
#Workspace will be the database for export
arcpy.env.workspace = r"P:\folder\rmp_2_5_2.mdb"
#calculate fields
arcpy.CalculateField_management ("WELL_PT", "W_STATUS", "STAK", "VB")
[ATTACH=CONFIG]15481[/ATTACH]
Error:
The calculated value is invalid for the row with ObjectID=2011. For Example, the calculated value may be too large for the field or you may be trying to add a string to a number field. this row will not be updated.
Thanks,
The D