AnsweredAssumed Answered

UpdateCursor - sequence size?

Question asked by BTLeslie on Oct 29, 2014
Latest reply on Oct 30, 2014 by Dan_Patterson

I'm trying to use UpdateCursor to insert some text into an attribute.  The attribute is a text field ten characters in length.  However the script will only work for values of one character in length.

 

i.e. if MyValue = "A" the script works

but if MyValue = "All" the error says 'sequence size must match size of the row'

 

with arcpy.da.UpdateCursor(MyFeatureLyr, MyAttribute) as cursor:
     for row in cursor:
          cursor.updateRow(MyValue)

Outcomes