laptop and a wrench

Bogue

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".

Dernière publication: December 28, 2021 ArcGIS Field Maps
Numéro d’ID de bogue BUG-000137470
EnvoiFebruary 16, 2021
Dernière modificationSeptember 26, 2025
S’applique àArcGIS Field Maps
Version trouvée20.2.0
Système d’exploitationApple iOS
Version du système d’exploitation14.0x
StatutWill Not Be Addressed

Informations supplémentaires

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.

Solution de contournement

  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.

Étapes pour reproduire

ID de bogue: BUG-000137470

Logiciel:

  • ArcGIS Field Maps

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