laptop and a wrench

Erro

In ArcGIS Pro 3.2 and newer, date fields are changed to high precision when publishing to ArcGIS Online without an option to avoid the change.

ArcGIS Pro
Número de ID do Erro BUG-000170167
EnviadoAugust 21, 2024
Última ModificaçãoOctober 1, 2024
Aplica-se àArcGIS Pro
Versão encontrada3.3
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
StatusIn Review

Solução Provisória

The issue is not reproducible in ArcGIS Pro 3.1.X or prior.

  • Delete the existing tracking fields from the hosted feature class and allow the Enable Editor Tracking tool to recreate them.
  • Omit the creation date field and the last edit date field while running the tool.
  • Export the hosted feature layer to a file geodatabase in ArcGIS Online or in the portal, download the geodatabase, then add it to the ArcGIS Pro project.
  • Use ArcPy field mapping to change the high precision to low precision when exporting the feature service (see sample code below).

# Fix Precision

fm_c = arcpy.FieldMap()

fm_c.addInputField(service_url, created_at_fname)

updated_out_field = fm_c.outputField

updated_out_field.precision = 0

fm_c.outputField = updated_out_field

field_mappings_corrected.addFieldMap(fm_c)

Etapas para Reproduzir

ID do Erro: BUG-000170167

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