laptop and a wrench

Erro

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

ArcGIS Pro
Número de ID do Erro BUG-000163394
EnviadoDecember 3, 2023
Última ModificaçãoMay 8, 2025
Aplica-se àArcGIS Pro
Versão encontrada3.2
Sistema OperacionalWindows OS
Versão do Sistema Operacional11.0 64 bit
StatusKnown Limit

Informações Adicionais

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

Etapas para Reproduzir

ID do Erro: BUG-000163394

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