AnsweredAssumed Answered

FGDB - Error when writing unicode into blob field

Question asked by DemersM on Sep 7, 2018
Latest reply on Sep 7, 2018 by bixb0012

I got an SystemError : error return without exception set error when trying to write a unicode into a blob field into a table inside a FGDB using arcpy.da.UpdateCursor with ArcGIS v10.3

 

for instance:

 

import arcpy

value = u"a unicode string! with some accent éàèû"
with arcpy.da.UpdateCursor(r"c:\\my_fgdb.fgdb\my_table", ["blob_field"], where_clause="FID = '0') as cursor:
    for row in cursor:
        row[0] = value
        cursor.updateRow(row)

 

I know blob can store string, but is it normal it cannot store unicode?

Outcomes