AnsweredAssumed Answered

Update cursors and feature datasets

Question asked by Dale_Richter_qgsp on Jun 28, 2018
Latest reply on Jun 29, 2018 by bixb0012

Having a problem using an update cursor to add values to a field in a feature class that is in a feature dataset and has topology.  This code always works outside of a feature dataset and sometimes works inside a feature dataset without topology.

 

            UPDATE_FIELD = [error_field] + KEY_FIELD
            with arcpy.da.UpdateCursor (features, UPDATE_FIELD) as cursor:
                for row in cursor:
                    key = tuple (row [1:])
                    if key in error:
                        row [0] = error [key]
                        cursor.updateRow (row)
            del cursor

 

Any help would be appreciated. 

Outcomes