laptop and a wrench

Bogue

The FieldMap.addTable method does not add editor tracking fields in ArcGIS Pro versions later than 3.0.

ArcGIS Pro
Numéro d’ID de bogue BUG-000163394
EnvoiDecember 3, 2023
Dernière modificationMay 8, 2025
S’applique àArcGIS Pro
Version trouvée3.2
Système d’exploitationWindows OS
Version du système d’exploitation11.0 64 bit
StatutKnown Limit

Informations supplémentaires

This is a known limitation. Any required or geodatabase-managed fields are not loaded into the field map by default. If editor tracking fields are needed, they can be added to the field map in the following script:
fc = "DBO.Points"
desc = arcpy.Describe(fc)

fms = arcpy.FieldMappings()
fms.addTable(fc)

if desc.editorTrackingEnabled:
    tracking_fields = [
        desc.creatorFieldName, 
        desc.createdAtFieldName, 
        desc.editorFieldName, 
        desc.editedAtFieldName
    ]

    for tf in tracking_fields:
        fm = arcpy.FieldMap()
        fm.addInputField(fc, tf)
        fms.addFieldMap(fm)

arcpy.conversion.ExportFeatures(fc, "memory/test", field_mapping=fms)
For more information on accessing tracking field information via arcpy.Describe(), see https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/editor-tracking-properties.htm

Étapes pour reproduire

ID de bogue: BUG-000163394

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