Solved

Remove Duplicates without Removing Attachments

  • 28 March 2019
  • 1 reply
  • 6 views

Badge +4

I have a feature class in ArcGIS Online that has attachments. I have realized that there are many duplicate features. Therefore I need to remove the duplicates and keep the attachments.

ArcGIS is using GlobalID for the attachments so I was planning to do following:

1. Insert the GlobalID`s from the feature class to a list

2. Compare list with REL_GLOBALID column of Attachment Files

3. Select the rows that have the same ID`s

4.5.6.7....

I don`t know how to continue after this.

I am looking for your helps!

icon

Best answer by markatsafe 1 April 2019, 17:50

View original

1 reply

Badge +2

@canerakin111 At the moment, FME cannot write features with attachments to AGOL, see this Idea - Writing Attachments to ArcGIS Online Feature Service. If you have access to the underlying geodatabase, then you might be able to use the the methodology you described to create a temporary feature class, and then copy that over your original feature class once the duplicates have been removed. FME's Geodatabase writer cannot update features that have attachments (issue FMEENGINE-58158), so you will have to create a new feature class rather than updating the existing one.

If you can include a small sample dataset (File Geodb) that illustrates your issue, or modify the example Geodb in the attachments tutorial, then someone in the community might be able to give you an example workflow.

Reply