laptop and a wrench

Bug

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

Zuletzt veröffentlicht: December 28, 2021 ArcGIS Field Maps
Bug-ID-Nummer BUG-000137470
EingereichtFebruary 16, 2021
Zuletzt geändertSeptember 26, 2025
Gilt fürArcGIS Field Maps
Gefunden in Version20.2.0
BetriebssystemApple iOS
Betriebssystemversion14.0x
StatusWill Not Be Addressed

Zusätzliche Informationen

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.

Workaround

  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.

Schritte zur Reproduzierung

Bug-ID: BUG-000137470

Software:

  • ArcGIS Field Maps

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln