| 漏洞 ID 编号 |
BUG-000170167 |
| 已提交 | August 21, 2024 |
| 上次修改时间 | October 1, 2024 |
| 适用范围 | ArcGIS Pro |
| 找到的版本 | 3.3 |
| 操作系统 | Windows OS |
| 操作系统版本 | 10.0 64 Bit |
| 状态 | In Review
该问题正在审查中。 审查过程可确保问题包含所有必要信息、易于理解、不与现有问题重复,且为关于漏洞或增强功能的有效请求。 在此阶段,可能会联系您进行说明或提供其他信息。
|
解决办法
The issue is not reproducible in ArcGIS Pro 3.1.X or prior.
- Delete the existing tracking fields from the hosted feature class and allow the Enable Editor Tracking tool to recreate them.
- Omit the creation date field and the last edit date field while running the tool.
- Export the hosted feature layer to a file geodatabase in ArcGIS Online or in the portal, download the geodatabase, then add it to the ArcGIS Pro project.
- Use ArcPy field mapping to change the high precision to low precision when exporting the feature service (see sample code below).
# Fix Precision
fm_c = arcpy.FieldMap()
fm_c.addInputField(service_url, created_at_fname)
updated_out_field = fm_c.outputField
updated_out_field.precision = 0
fm_c.outputField = updated_out_field
field_mappings_corrected.addFieldMap(fm_c)
重现步骤