Skip to main content

Hi All,

I’ve got what should be a simple issue but I’ve not been able to find and answer for my exact query.

I’d like to take a feature class, containing photo attachments, stored in a file geodatabase and write it to another file geodatabase. Essentially copying the data from one file gdb to another.

I’ve seen lots of posts about reading and writing as separate processes. In both instances the photo’s are imported and attached or extracted from the data.

Is it possible to essentially copy a feature class with attachments between file geodatabases, without having to extract the photo attachments and then reattach them?

Thanks for your time.

I think the easiest way to do this is to use a PythonCaller and arcpy. Prompt your question in AI assist to generate the code.


Thanks for your reply, I can do it Python. I was just hoping there was a way in FME that didn’t require reaching out to Python.


Oh I believe it is possible to do it pure FME, but it will be harder. I can try and create a sample, but I do not have the time nor urge to create the sample data. So, if you create and attach a zip with a sample file geodatabase with the featureclasses as you have with only one or two rows data, I’ll try and find the FME way.


Oh I believe it is possible to do it pure FME, but it will be harder. I can try and create a sample, but I do not have the time nor urge to create the sample data. So, if you create and attach a zip with a sample file geodatabase with the featureclasses as you have with only one or two rows data, I’ll try and find the FME way.

Thanks for the offer to investigate this. I’ve attached a sample of data.


Ah I’m sorry, I should have known from the top of my head. Creating a relationship class in a file geodatabase is currently not supported. See the article Writing Geodatabase Relationship Classes:

“FME cannot create the relationship class in the target geodatabase. Either create the relationship class in ArcGIS/ArcPro, or use a template.”

 


Ah I’m sorry, I should have known from the top of my head. Creating a relationship class in a file geodatabase is currently not supported. See the article Writing Geodatabase Relationship Classes:

“FME cannot create the relationship class in the target geodatabase. Either create the relationship class in ArcGIS/ArcPro, or use a template.”

 

Ah very good point, I’d read that article but hadn’t thought about it from the perspective of it being a new feature class in the database it was writing too. Explains why I was struggling though 😂.

Thanks for your time on this.