Hello everyone,
I'm encountering a peculiar problem when exporting a feature class using the "Export Data" function (arcpy.conversion.ExportFeatures) in ArcGIS. The issue is as follows: after the export, a field of double type loses its decimal point, resulting in a loss of precision in the numbers. For instance, 320.7 becomes 3207 after the export.
I initially thought this could be related to a conversion from double to integer, but that's not the case. The decimal point is simply removed, and the values no longer correspond to what they should be.
Here's the arcpy command I'm using:
with arcpy.EnvManager(transferDomains="TRANSFER_DOMAINS", preserveGlobalIds=True):
arcpy.conversion.ExportFeatures(
in_features=inFC,
out_features=outFC,
where_clause="",
use_field_alias_as_name="NOT_USE_ALIAS",
field_mapping="",
sort_field=None
)
I'm puzzled as to the cause of this issue. Am I using the function incorrectly, or is this a bug in ArcGIS Pro? Have any of you encountered a similar problem and do you know how to resolve it?
Any assistance or suggestions would be greatly appreciated. Thank you in advance for your help.
Best regards,