laptop and a wrench

Error

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 publicación: December 28, 2021 ArcGIS Field Maps
Número de ID del error BUG-000137470
EnviadoFebruary 16, 2021
Última modificaciónSeptember 26, 2025
Relacionado conArcGIS Field Maps
Versión encontrada20.2.0
Sistema operativoApple iOS
Versión de sistema operativo14.0x
EstadoWill Not Be Addressed

Información adicional

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.

Solución alternativa

  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.

Pasos para reproducir

ID del error: BUG-000137470

Software:

  • ArcGIS Field Maps

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga