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?
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!
I cannot use ArcPy for this task sadly. Needs to be with the ArcGIS API for Python append method, thanks though!
I use arcpy.management.Append for this with
arcpy.env.maintainAttachments = True arcpy.env.preserveGlobalIds = True
and they append with attachments and all.
R_
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.