Exporting a hosted feature layer with a Date field as a feature class in ArcGIS Pro changes the field schema and may return an error when opening the feature class in ArcMap.
ArcGIS Pro
漏洞 ID 编号
BUG-000164682
已提交
January 29, 2024
上次修改时间
August 20, 2024
适用范围
ArcGIS Pro
找到的版本
3.2.1
操作系统
Windows OS
操作系统版本
10.0 64 Bit
状态
As Designed
经开发团队审核,已确定此行为符合设计。 有关详细信息,请参阅“其他信息”部分。
附加信息
When adding a Date field to a hosted feature layer in ArcGIS Online using the method described in this issue, the Date field automatically has high (millisecond) precision. Similarly, when publishing a file geodatabase feature class with a Date field to ArcGIS Online, the Date field is automatically updated to be high precision.
When viewing the hosted feature layer with the high precision Date field in ArcGIS Pro, the high precision date is honored. When viewing the same service in ArcMap, the high precision values are downgraded to standard precision. If this service is exported as a file geodatabase in ArcGIS Pro, the high precision Date field is maintained. File geodatabase feature classes with a high precision Date field cannot be viewed in versions of ArcGIS Pro earlier than 3.1, nor in ArcMap.
There is not a data corruption bug happening; this is just a consequence of using high precision Date fields in older versions of the software. There are a handful of workarounds available to allow the export to a file geodatabase to make a feature class that can be used in earlier versions of ArcGIS Pro or ArcMap.
Alternatively, an Enhancement request could be logged, either for the ArcGIS Online hosted feature service to allow the addition of a standard prevision Date field or for the file geodatabase to support high precision Date fields in some way in earlier versions of ArcGIS Pro or ArcMap.
解决办法
Use the Export Data > Export to FGDB option on the hosted feature layer item to create a file geodatabase that can be used in earlier versions of ArcGIS Pro or ArcMap. The high precision Date field from the feature service is automatically downgraded to a standard precision Date field.
Perform the data export of the hosted feature layer in ArcMap if the file geodatabase is to be used in ArcMap. This takes care of the downgrade of the Date field from high to standard precision.
Perform the data export of the hosted feature layer in ArcGIS Pro. After running the export, use the Add Field tool to add a standard precision Date field to the file geodatabase feature class. Then run the Calculate Field tool to calculate the values from the high precision Date field into the standard precision Date field. Then use the Delete Field tool to remove the high precision Date field. The resulting feature class can be used in previous versions of ArcGIS Pro and ArcMap.