Skip to main content
Solved

Remove Duplicates without Removing Attachments

  • March 28, 2019
  • 1 reply
  • 21 views

canerakin
Contributor
Forum|alt.badge.img+6

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!

Best answer by markatsafe

@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.

View original
Did this help you find an answer to your question?

1 reply

Forum|alt.badge.img+2
  • Best Answer
  • April 1, 2019

@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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings