Numéro d’ID de bogue |
BUG-000164682 |
Envoi | January 29, 2024 |
Dernière modification | August 20, 2024 |
S’applique à | ArcGIS Pro |
Version trouvée | 3.2.1 |
Système d’exploitation | Windows OS |
Version du système d’exploitation | 10.0 64 Bit |
Statut | As Designed
Après examen par l’équipe de développement, il a été déterminé que ce comportement est prévu. Pour plus d’informations, reportez-vous à la section Informations supplémentaires.
|
Informations supplémentaires
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.
Solution de contournement
- 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.
Étapes pour reproduire
ID de bogue: BUG-000164682
Logiciel: