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

1786
14
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
14 Replies
DanPatterson
MVP Esteemed Contributor

are you sure the image isn't in the blob field?  the *.jpg are just file names with no path

See your associated post

ArcGIS Pro 2.6.2: How to display the physical phot... - GeoNet, The Esri Community


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

If you try to perform the “enable attachments” option from scratch, you will be finding out that the attachments are saved as per screenshots below

 

The issue in this thread is to find out how to rebuild the “relationship class” if it’s deleted!

 

 

Clip_418.jpgClip_419.jpgClip_420.jpg

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

Did you use the tool or using shortcuts?

Enable Attachments (Data Management)—ArcGIS Pro | Documentation


... sort of retired...
Robert_LeClair
Esri Notable Contributor

So the question is if by chance sometime deleted the Relationship Class (RC) that is used by the Enable Attachments GP tool/command, is it possible to build a new relationship class to re-enable the existing relationship?  If so, I tried.  I took a screen shot of the Relationship Class (RC) properties before I deleted it.  Deleted the RC.  Rebuilt the RC using the GP tool using the screen shot.  Shut down AGP.  Loaded the project again.  Added the FC with the attachments "rebuilt" of sorts.  Identified a point and it did not show the Attachment.  So I'm guessing the answer is not possible.  Which leads to a question, why would one delete the RC to begin with?  An error?

JamalNUMAN
Legendary Contributor

Thanks Robert.

 

Right. What if the relationship is deleted by mistake? Is this the end and we are losing everything?

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

You're welcome Jamal.   So if the relationship class itself is deleted, then the relationship appears to be broken.  I would presume that the data in the relationship (i.e. source data - *.jpgs, *.docx, etc.) is fine.  It's just not related to the feature class anymore.  For example, if I created a RC to a non-spatial table, the non-spatial table still exists as would a folder of *.jpgs.  You would have to rebuild the RC again to re-establish the relationship.

JamalNUMAN
Legendary Contributor

Thanks Robert.

 

If the attachment relationship is deleted and rebuilt then the photos are not displayed as per the screenshot below

 

Clip_42.jpgClip_43.jpgClip_44.jpgClip_45.jpg

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

Yes sir - that's what I saw too!

JamalNUMAN
Legendary Contributor

Does this mean that there is no chance ever to reconnect features to their images in case the relationship is deleted by mistake?

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos