laptop and a wrench

Erro

Opening a web map in the new ArcGIS Collector and ArcGIS Field Maps app fails with the error returned, “invalid call with current token type” when the map contains a layer with a date field and date format "datePattern": "MMMM d, y".

Última Publicação: December 28, 2021 ArcGIS Field Maps
Número de ID do Erro BUG-000137470
EnviadoFebruary 16, 2021
Última ModificaçãoSeptember 26, 2025
Aplica-se àArcGIS Field Maps
Versão encontrada20.2.0
Sistema OperacionalApple iOS
Versão do Sistema Operacional14.0x
StatusWill Not Be Addressed

Informações Adicionais

The issue is expected behavior in ArcGIS Field Maps. Formatting a date using the 'datePattern' property is not supported. Dates should be formatted using 'dateFormat', refer to https://developers.arcgis.com/documentation/common-data-types/format.htm.

Solução Provisória

  1. Remove the pop-up for the layer, and save the web map.
  2. Open the map's JSON in ArcGIS Online Assistant and change the format of the date field from "datePattern": "MMMM d, y" to "dateFormat": "shortDateLongTime".
  3. Open pop-up configuration > Configure Attributes.
  4. Change the display format of the date field, and save the map.

Etapas para Reproduzir

ID do Erro: BUG-000137470

Software:

  • ArcGIS Field Maps

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