Why does the "Export Attachment" tool in ArcGIS Pro not preserve GlobalID when using GlobalID solely to name exported features? Why would I want to export an attachment that now has no relation to the record it was originally tied to? What is more interesting, when I run the following snippet of code:
arcpy.management.ExportAttachments(
input_layer,
attachment_folder,
"",
"REPLACE",
"GlobalID"
)
It preserves GlobalID and my attachments are output as expected. Why would the GUI from ArcGIS Pro Export Attachments tool behave differently? There are also no environments to set Preserve GlobalID to True so I'm not sure how this can be controlled when using the tool from the ArcPro geoprocessing toolbox directly.
ArcPro Version 3.4.0
Solved! Go to Solution.
The solution is to just not use the geoprocessing toolbox but to run the snippet shown above with
arcpy.env.preserveGlobalIds = True
arcpy.management.ExportAttachments(...)
The solution is to just not use the geoprocessing toolbox but to run the snippet shown above with
arcpy.env.preserveGlobalIds = True
arcpy.management.ExportAttachments(...)