Hi there,
When using the .append () method on a geodatabase (uploaded to AGOL) to a hosted feature layer, the attachments don't carry across to the hosted feature layer. Any ideas?
I use arcpy.management.Append for this with
arcpy.env.maintainAttachments = True arcpy.env.preserveGlobalIds = True
and they append with attachments and all.
R_
I cannot use ArcPy for this task sadly. Needs to be with the ArcGIS API for Python append method, thanks though!
The GlobalID is readonly and out of our control. Make a new field and save the ID to a new GUID field that you do have ownership. Then make up a dictionary of oldID to newID and change the foreign key in the attachment to point to the new one. Phew!
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.