Select to view content in your preferred language

ArcGIS Pro 2.6.2: How to reconnect the feature class with its attachment table that contains photos that are collected when enabling the “enable attac

3696
16
11-25-2020 11:15 AM
Labels (1)
JamalNUMAN
Legendary Contributor

ArcGIS Pro 2.6.2: How to reconnect the feature class with its attachment table that contains photos that are collected when enabling the “enable attachments” property?

 

What if the relationship between the feature class and its attachment table is deleted? How to reconnect them so that the photos can be viewed?

 

If the “relationship class” is re-created between the feature class and its attachment table then the photos fails to view!

 

Clip_414.jpg

Clip_415.jpg

 

 

Clip_416.jpg

 

 

 

 

 

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos
16 Replies
DanPatterson
MVP Esteemed Contributor

You never tried the code examples and the other suggestion in your associated thread. 

I am still curious as to what is in that "blob" field (image maybe?)


... sort of retired...
JamalNUMAN
Legendary Contributor

As they have nothing to do to reconnect features to their corresponding images such that they can be displayed as I have already shown in my previous screenshots

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos
Robert_LeClair
Esri Esteemed Contributor

Based upon my testing of deleting the RC and building a new RC with the exact parameters, it seems unlikely unless I'm missing something on the inner workings of the GDB and ArcGIS Pro.  If this is an eGDB, then full and incremental backups of your database would be the best way to recover.

JamalNUMAN
Legendary Contributor

Do you encourage me to report an idea for enhancement for this?

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos
Robert_LeClair
Esri Esteemed Contributor

Your call.  If you feel this behavior is needed for workflow, then you can add it certainly.  As you know, I'm not on the ArcGIS Pro Dev Team rather Training Services so have little pull in what gets incorporated into the ArcGIS Pro application.  Like I said for eGDB's, one can do an incremental recovery to restore deleted RC's.  Not as easy with fGDB's.

ToddW_stl
Esri Contributor

This is an untested theory, but you could try:

0 Kudos
yockee
by
Frequent Contributor

Hi @JamalNUMAN . I encounter the same problem.. I was loading the attachment to feature Class stored in SDE postgresql and failed midway. Then I create another table with the exact same schema and turn the LOGGING of the table off. I load the attachment again into the new table. It is a success. 

But now there is a problem: how to get the relationship class to read this new table. Several legal attempts (I tried all Geoprocessing Tools relating with Attachment) do not work.

I realize that I have 2 tables : one table is half empty table and another is table with successfull import. Then I open PGAdmin and start copying manually (INSERT INTO half_empty SELECT * FROM successfull_table).

Now the attachment works again..

Hope that helps. I know it's been a long time but might be useful to someone

0 Kudos