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".
上次发布: December 28, 2021ArcGIS Field Maps
漏洞 ID 编号
BUG-000137470
已提交
February 16, 2021
上次修改时间
September 26, 2025
适用范围
ArcGIS Field Maps
找到的版本
20.2.0
操作系统
Apple iOS
操作系统版本
14.0x
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
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.
解决办法
Remove the pop-up for the layer, and save the web map.
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".
Open pop-up configuration > Configure Attributes.
Change the display format of the date field, and save the map.