laptop and a wrench

Bogue

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

ArcGIS Pro
Numéro d’ID de bogue BUG-000178635
EnvoiAugust 12, 2025
Dernière modificationDecember 15, 2025
S’applique àArcGIS Pro
Version trouvée3.4
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
StatutIn Product Plan

Solution de contournement

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

Étapes pour reproduire

ID de bogue: BUG-000178635

Logiciel:

  • ArcGIS Pro

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement