Select to view content in your preferred language

Export Attachment Geoprocessing Tool

176
1
Jump to solution
03-24-2026 12:05 PM
g_maps
by
Occasional Contributor

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

0 Kudos
1 Solution

Accepted Solutions
g_maps
by
Occasional Contributor

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(...)

View solution in original post

0 Kudos
1 Reply
g_maps
by
Occasional Contributor

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(...)

0 Kudos