laptop and a wrench

Bug

Running edits with arcpy.da.UpdateCursor does not update the editor tracking 'LastEdit' field.

ArcGIS Pro
Bug-ID-Nummer BUG-000178635
EingereichtAugust 12, 2025
Zuletzt geändertDecember 15, 2025
Gilt fürArcGIS Pro
Gefunden in Version3.4
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
StatusIn Product Plan

Workaround

Using the arcpy.da.Editor will create separate edit sessions in Python that will each have their own timestamp. Nesting each update within the context of its own arcpy.da.Editor edit session will create a separate timestamp for the "last edited" editor tracking field.

with arcpy.da.Editor("path\\to\\myFGDB.gdb") as edit:
    with arcpy.da.UpdateCursor("test_edit", "Num", where_clause="Num=1") as uc:
        for row in uc:
            uc.updateRow([row[0]+3])
with arcpy.da.Editor("path\\to\\myFGDB.gdb") as edit:
    with arcpy.da.UpdateCursor("test_edit", "Num", where_clause="Num=2") as uc:
        for row in uc:
            uc.updateRow([row[0]+3])

Schritte zur Reproduzierung

Bug-ID: BUG-000178635

Software:

  • ArcGIS Pro

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln