laptop and a wrench

Error

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

ArcGIS Pro
Número de ID del error BUG-000178635
EnviadoAugust 12, 2025
Última modificaciónDecember 15, 2025
Relacionado conArcGIS Pro
Versión encontrada3.4
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
EstadoIn Product Plan

Solución alternativa

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])

Pasos para reproducir

ID del error: BUG-000178635

Software:

  • ArcGIS Pro

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga