<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Relating several feature classes to a single attachment table in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/relating-several-feature-classes-to-a-single/m-p/827830#M4095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm familiar with creating or enabling attachments for a feature class or table in ArcCatalog and ArcGIS Online. Is there a way to have several feature classes in a FGDB relate to a single attachment table using one:many relationships between each feature class and the one attachment table? I've tried the following, which didn't work:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;creating my own attachment table with a BLOB data type field and a GUID field for each connecting feature class' Global ID&lt;/LI&gt;&lt;LI&gt;creating attachments for one feature class (e.g. survey_ATTACH) in ArcCatalog and then creating new relationships between each of the other feature classes to the newly created survey_ATTACH table using the parent's GlobalID to the child's REL_GLOBALID.&lt;/LI&gt;&lt;LI&gt;copying the survey_ATTACH table, adding GUID fields to hold each of the feature classes GLOBALID and creating relationships between each feature class and the survey_ATTACH table&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I was hoping to lump all photos from all the feature classes into a single attachment table instead of the 9-10 attachment tables for the FGDB.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 Jul 2018 00:30:32 GMT</pubDate>
    <dc:creator>CharlottePeters2</dc:creator>
    <dc:date>2018-07-14T00:30:32Z</dc:date>
    <item>
      <title>Relating several feature classes to a single attachment table</title>
      <link>https://community.esri.com/t5/geodatabase-questions/relating-several-feature-classes-to-a-single/m-p/827830#M4095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm familiar with creating or enabling attachments for a feature class or table in ArcCatalog and ArcGIS Online. Is there a way to have several feature classes in a FGDB relate to a single attachment table using one:many relationships between each feature class and the one attachment table? I've tried the following, which didn't work:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;creating my own attachment table with a BLOB data type field and a GUID field for each connecting feature class' Global ID&lt;/LI&gt;&lt;LI&gt;creating attachments for one feature class (e.g. survey_ATTACH) in ArcCatalog and then creating new relationships between each of the other feature classes to the newly created survey_ATTACH table using the parent's GlobalID to the child's REL_GLOBALID.&lt;/LI&gt;&lt;LI&gt;copying the survey_ATTACH table, adding GUID fields to hold each of the feature classes GLOBALID and creating relationships between each feature class and the survey_ATTACH table&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I was hoping to lump all photos from all the feature classes into a single attachment table instead of the 9-10 attachment tables for the FGDB.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jul 2018 00:30:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/relating-several-feature-classes-to-a-single/m-p/827830#M4095</guid>
      <dc:creator>CharlottePeters2</dc:creator>
      <dc:date>2018-07-14T00:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Relating several feature classes to a single attachment table</title>
      <link>https://community.esri.com/t5/geodatabase-questions/relating-several-feature-classes-to-a-single/m-p/827831#M4096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using a GUID as the relate key can be tricky business.&amp;nbsp; If the data is collected in geodatabase and then moved into another gdb, those guids get changed.&amp;nbsp; My suggestion is to add another fieild and name it something like RelateID or JoinID.&amp;nbsp; You make it a text fields of 255 characters and then calulate it's value of the original GUID.&amp;nbsp; That value is a static snapshot so it persists regardless of where the data ends up living. Create your subsequent relationship classes based on this field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like so many things in life there is a trade of when using this procedure.&amp;nbsp; It's up to you to you to add new relate field values when records are added....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jul 2018 13:50:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/relating-several-feature-classes-to-a-single/m-p/827831#M4096</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2018-07-14T13:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Relating several feature classes to a single attachment table</title>
      <link>https://community.esri.com/t5/geodatabase-questions/relating-several-feature-classes-to-a-single/m-p/827832#M4097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion on preserving the GUID. Whether I use GUID or another relate field, I still cannot seem to create a single table that will accept attachments, photos in my case, from multiple feature classes (FC). I have 5 FCs that need to have attachments. Instead of creating an attachment table for each FC, I want to have a single attachment table and relate all the FCs to the table via one:many relationships. When I create the relationships, ArcMap, ArcGIS Pro, and ArcGIS Online do not recognize the table as an attachment table. When I use the 'create attachments' feature in ArcCatalog, I can attach files to a single FC. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 22:09:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/relating-several-feature-classes-to-a-single/m-p/827832#M4097</guid>
      <dc:creator>CharlottePeters2</dc:creator>
      <dc:date>2018-07-16T22:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Relating several feature classes to a single attachment table</title>
      <link>https://community.esri.com/t5/geodatabase-questions/relating-several-feature-classes-to-a-single/m-p/827833#M4098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm.... That's interesting.&amp;nbsp; All of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re-thinking my earlier suggestion, I think you will need a series of 5 different relate fields in your attachment table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FC1_Relate, FC2_Relate, FC3_Relate, FC4_Relate, FC5_Relate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In each of your 5 feature classes, you'll just have one relate field (aka the 'Key' field).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you '&lt;SPAN style="background-color: #ffffff;"&gt;create attachments' feature in ArcCatalog' ?&amp;nbsp; Looking at&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/an-overview-of-the-attachments-toolset.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/an-overview-of-the-attachments-toolset.htm"&gt;An overview of the Attachments toolset—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;, I don't see such a tool and the help makes me wonder if you'll actualy be able to accomplish your goal of one attachment table&amp;nbsp;with&amp;nbsp; mulitple feature classes.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 22:51:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/relating-several-feature-classes-to-a-single/m-p/827833#M4098</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2018-07-16T22:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Relating several feature classes to a single attachment table</title>
      <link>https://community.esri.com/t5/geodatabase-questions/relating-several-feature-classes-to-a-single/m-p/827834#M4099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To create attachments in ArcCatalog, right click the FC in ArcCatalog&amp;gt;&amp;gt;Manage&amp;gt;&amp;gt;Create attachments. It creates the [parent name]_ATTACH table and [parent name]_ATTACHREL relationship. The graphic shows attachment tables/relationships created for tables.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="414271" alt="Create attachments in ArcCatalog" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/414271_create_attachments.PNG" /&gt;&lt;/P&gt;&lt;P&gt;By default, the _ATTACH table contains the following fields where the REL_GLOBALID field is used to relate to the parent GlobalID:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="414392" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/414392_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;One way I tried was to create relationship classes between each FC and the one _ATTACH table that I had ArcCatalog create for FC0 so:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;FC1:FC0_ATTACH using parent GlobalID from FC1 to FC0_ATTACH REL_GLOBALID&lt;/LI&gt;&lt;LI&gt;FC2:FC0_ATTACH using parent GlobalID from FC2 to FC0_ATTACH REL_GLOBALID&lt;/LI&gt;&lt;LI&gt;and so on for the other FCs&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;That didn't work in the sense that the table would show up in ArcMap, ArcGIS Online, and Collector for ArcGIS but I couldn't add any attachments except for FC0.&lt;/P&gt;&lt;P&gt;Another way I tried was to add GUID fields to the FC0_ATTACH table for every FC I wanted to relate, which sounds like what you suggested earlier.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;FC1:FC0_ATTACH using parent GlobalID from FC1 to FC0_ATTACH FC1_GlobalID&lt;/LI&gt;&lt;LI&gt;FC2:FC0_ATTACH using parent GlobalID from FC2 to FC0_ATTACH FC2_GlobalID&lt;/LI&gt;&lt;LI&gt;and so on&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG __jive_id="414394" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/414394_pastedImage_5.png" /&gt;&lt;/P&gt;&lt;P&gt;That approach yielded the same results as the first approach.&lt;/P&gt;&lt;P&gt;To add to the confusion of how ESRI handles attachments. I used ArcCatalog to auto create attachments for an Assessment FC, which gave me:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Assessment FC&lt;/LI&gt;&lt;LI&gt;Assessment_ATTACH table&lt;/LI&gt;&lt;LI&gt;Assessment_ATTACHREL relationship&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I looked at the Relates property for Assessment FC in ArcMap and could not see the _ATTACHREL relationship listed; however, I could still add attachments. The relationship shown in the graphic below is for another table and not for the Attachment table.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="414395" alt="ArcCatalog attachment" class="image-4 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/414395_autoAttachment.png" /&gt;&lt;/P&gt;&lt;P&gt;Then I manually created a relationship between a Camera FC (in the same FGDB as Assessment) to the Assessment_ATTACH table using parent GlobalID to child REL_GLOBALID. Since the Assessment_ATTACH relationship works for Assessment FC, I thought I could hitch the Camera FC to the same attachment table and inherit all the attachment capabilities afforded the Assessment FC. Wrong! I could still add attachments for the Assessment FC, but not for the Camera FC. I look at the relate properties for the Camera FC and the relationship I created between Camera FC:Assessment_ATTACH is in the list.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="manual attachment" class="image-5 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/414397_manualAttachment.jpg" /&gt;&lt;/P&gt;&lt;P&gt;It makes me wonder if there is something going on behind the scenes to make the attachment relationships work that isn't exposed to the user. Also wonder if a personal GDB would treat attachments differently seeing as how it follows the Access database schema. A rabbit hole for another day. For now, I'll do it the ESRI way and create attachments for every FC/table that needs it.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 03:08:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/relating-several-feature-classes-to-a-single/m-p/827834#M4099</guid>
      <dc:creator>CharlottePeters2</dc:creator>
      <dc:date>2018-07-18T03:08:12Z</dc:date>
    </item>
  </channel>
</rss>

