AnsweredAssumed Answered

Calculate Field not working in arcpy

Question asked by wr_sfoo on Jul 27, 2016
Latest reply on Sep 14, 2016 by rfairhur24

Not sure why this statement wouldn't run within an edit session in arcpy:

 

edit = arcpy.da.Editor(gdb)

edit.startEditing(False, True)

edit.startOperation()

arcpy.CalculateField_management ('Export_Output', 'Point_Type', 'UNKNOWN')

edit.stopOperation()

edit.stopEditing(True)

 

I am working with a versioned replica in SQL Express.  Working on the default version.

 

Solution: I just ended up using da.UpdateCursor to calculate all recs to 'UNKNOWN'.  This worked fine.  Was getting strange results otherwise (on small and large datasets).

Outcomes