How To: Re-establish the relationship class for geodatabase attachments
When enabling attachments for a particular geodatabase feature class, a relationship class is automatically created to maintain the link between each feature and its associated attachment stored in the attachments table. In the event the relationship class is inadvertently deleted, it is not possible to simply build a relationship class between the attachments table and its feature class, while re-enabling the attachment's functionality. Therefore, a workflow is required to re-establish the relationship as well as enable attachments, so that attachments can be added and existing attachments accessed via the Attachment Manager.
This article provides instructions to enable and re-establish the relationships between the geodatabase feature classes and its related attachments.
- In the Catalog window of ArcMap, create a copy of the feature class used to establish the original attachments relationship class, and paste it to the same geodatabase.
Note: The copied feature class is renamed with '_1' at the end of the name.
- Right-click the _1 feature class, click Manage, and click Create Attachments.
Note: The _1_ATTACH table along with a new relationship class is automatically created.
- Right-click the _1_ATTACH table, and click Load > Load Data.
- Click Next, and use the input data file browser to navigate to and select the original ATTACH table. Click Open and Add.
- Continue clicking Next through the remaining dialogs of the wizard, and click Finish.
- Add the _1 feature class into the map document.
- Right-click the _1 layer in Table Of Contents, and click Edit Features > Start Editing.
- Click a feature that has an attachment, and open the Attributes window.
- Click the Open Attachment Manager drop-down and note that the attachments are listed.
- ArcMap: Adding attachments to features
- Bug: Geodatabase attachments are not automatically included in the output of geoprocessing tools
Last Published: 7/17/2020
Article ID: 000011515
Software: ArcMap 10.8, 10.7.1, 10.7, 10.6.1, 10.6, 10.5.1, 10.5, 10.4.1, 10.4, 10.3.1, 10.3, 10.2.2, 10.2.1, 10.2, 10.1, 10