AnsweredAssumed Answered

Calculate a GUID Field with a value

Question asked by jborgion Champion on Aug 10, 2018
Latest reply on Jun 13, 2019 by jborgion

Is it possible to calculate a GUID type field with a value of my own design?  I can create a string of the specified dimensions with my own string + blank spaces and brackets:


with arcpy.da.SearchCursor('tv',"*") as cursor:
     for row in cursor:
         oid = row[0]
        select = 'OBJECTID = {}'.format(oid)
         length = len(row[1])
         target = 36 - length
         value = row[1].ljust(target,' ')
         value = '{'+ '{}'.format(value)
         value = value+'}'
         print value
{BC_00.61                    }

But when I plug in a arcpy.FieldManagement() method instead of  the print in line 11, I get the famous error # 999999: 'generic error'....