laptop and a wrench

Erro

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

ArcGIS Pro
Número de ID do Erro BUG-000178635
EnviadoAugust 12, 2025
Última ModificaçãoDecember 15, 2025
Aplica-se àArcGIS Pro
Versão encontrada3.4
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
StatusIn Product Plan

Solução Provisória

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

Etapas para Reproduzir

ID do Erro: BUG-000178635

Software:

  • ArcGIS Pro

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download