<?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 How to load data with Attachments from one feature class to another in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-load-data-with-attachments-from-one-feature/m-p/467309#M18035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use ArcGIS Desktop 10.5 and PostgreSQL 9.5.&lt;/P&gt;&lt;P&gt;I have created enterprise GDB and all my feature classes have attachments. I have some feature classes which have more than 1000 rows and many polygons have two attachments. I want to load data with attachment into another feature class automatically. Is this possible. If yes, how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/groups/geodatabase?sr=search&amp;amp;searchId=e9ab92b0-f351-45ee-b5b4-62d2cb039790&amp;amp;searchIndex=0"&gt;https://community.esri.com/groups/geodatabase?sr=search&amp;amp;searchId=e9ab92b0-f351-45ee-b5b4-62d2cb039790&amp;amp;searchIndex=0&lt;/A&gt;‌ &lt;A href="https://community.esri.com/community/gis/managing-data?sr=search&amp;amp;searchId=8e526dc5-7677-4f44-9aff-d0816835f219&amp;amp;searchIndex=0"&gt;https://community.esri.com/community/gis/managing-data?sr=search&amp;amp;searchId=8e526dc5-7677-4f44-9aff-d0816835f219&amp;amp;searchIndex=0&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 May 2017 12:38:52 GMT</pubDate>
    <dc:creator>kendiekenmoe</dc:creator>
    <dc:date>2017-05-30T12:38:52Z</dc:date>
    <item>
      <title>How to load data with Attachments from one feature class to another</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-load-data-with-attachments-from-one-feature/m-p/467309#M18035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use ArcGIS Desktop 10.5 and PostgreSQL 9.5.&lt;/P&gt;&lt;P&gt;I have created enterprise GDB and all my feature classes have attachments. I have some feature classes which have more than 1000 rows and many polygons have two attachments. I want to load data with attachment into another feature class automatically. Is this possible. If yes, how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/groups/geodatabase?sr=search&amp;amp;searchId=e9ab92b0-f351-45ee-b5b4-62d2cb039790&amp;amp;searchIndex=0"&gt;https://community.esri.com/groups/geodatabase?sr=search&amp;amp;searchId=e9ab92b0-f351-45ee-b5b4-62d2cb039790&amp;amp;searchIndex=0&lt;/A&gt;‌ &lt;A href="https://community.esri.com/community/gis/managing-data?sr=search&amp;amp;searchId=8e526dc5-7677-4f44-9aff-d0816835f219&amp;amp;searchIndex=0"&gt;https://community.esri.com/community/gis/managing-data?sr=search&amp;amp;searchId=8e526dc5-7677-4f44-9aff-d0816835f219&amp;amp;searchIndex=0&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 12:38:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-load-data-with-attachments-from-one-feature/m-p/467309#M18035</guid>
      <dc:creator>kendiekenmoe</dc:creator>
      <dc:date>2017-05-30T12:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Hi i use arcgis desktop 10.5 postgreSQL 9.5 i have create enterprise GDB and All my feature class hav attachment i hav some feature who have more than 1000 rows and any polygon have 2 attachment i want to load data with attachment inside another featu</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-load-data-with-attachments-from-one-feature/m-p/467310#M18036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/groups/geodatabase?sr=search&amp;amp;searchId=62cf5844-29a7-41db-b3ee-2aba1dfb4c22&amp;amp;searchIndex=0"&gt;https://community.esri.com/groups/geodatabase?sr=search&amp;amp;searchId=62cf5844-29a7-41db-b3ee-2aba1dfb4c22&amp;amp;searchIndex=0&lt;/A&gt;‌ &amp;nbsp;to add a wider audience.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 13:04:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-load-data-with-attachments-from-one-feature/m-p/467310#M18036</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2017-05-30T13:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Hi i use arcgis desktop 10.5 postgreSQL 9.5 i have create enterprise GDB and All my feature class hav attachment i hav some feature who have more than 1000 rows and any polygon have 2 attachment i want to load data with attachment inside another featu</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-load-data-with-attachments-from-one-feature/m-p/467311#M18037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try &lt;STRONG&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/append.htm"&gt;Appending &lt;/A&gt;&lt;/STRONG&gt;the features, with &lt;STRONG&gt;Maintain Attachments&lt;/STRONG&gt; enabled in Environment Setting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 14:18:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-load-data-with-attachments-from-one-feature/m-p/467311#M18037</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2017-05-30T14:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to load data with Attachments from one feature class to another</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-load-data-with-attachments-from-one-feature/m-p/467312#M18038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a contractor help me with moving attachment files from&amp;nbsp;the old standardized fc's (SDSFIE) in SQL&amp;nbsp;to a new standardized fc that held the same data but had different field names.&amp;nbsp;&amp;nbsp;Many of the features had multiple attachments, mostly photos.&amp;nbsp;&amp;nbsp;My head was swimming as she lead me along during a screen share session.&amp;nbsp; Argh!&amp;nbsp; Its the join process that weird's me out.&amp;nbsp; Hopefully it will help YOU!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: red; font-size: 12pt;"&gt;Warning: Before following these steps make sure you have a backup of both the old and new geodatabases!&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;Steps provided below are for buildings, but the same steps can apply to any other feature classes with attachments.&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;buildingOrig: refers to the Building feature class in the old SDSFIE schema&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;buildingNewSchema: refers to the Building feature class in the new SDSFIE schema&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;&lt;STRONG&gt;Steps:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Add OBJECTIDNEW field (long int) to the buildingOrig attachment table.&lt;BR /&gt; &lt;/LI&gt;&lt;LI style="color: #000000; font-size: 11pt;"&gt;Do spatial join between buildingOrig and buildingNewSchema feature class - outputs to a new feature class containing both the old and new OBJECTID.&lt;BR /&gt; &lt;/LI&gt;&lt;LI style="color: #000000; font-size: 11pt;"&gt;You may have to remove and add the spatial join feature class back in - I had a weird issue with the field names until I did this.&lt;BR /&gt; &lt;/LI&gt;&lt;LI style="color: #000000; font-size: 11pt;"&gt;Do a join between the buildingOrig &lt;SPAN style="text-decoration: underline;"&gt;attachment&lt;/SPAN&gt; table and the spatial join feature class:&lt;/LI&gt;&lt;/OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;UL&gt;&lt;LI&gt;attachment table join field: REL_OBJECTID&lt;/LI&gt;&lt;LI style="color: #000000; font-size: 11pt;"&gt;spatial join feature class join field: OBJECTID&lt;/LI&gt;&lt;/UL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;UL&gt;&lt;LI style="color: #000000; font-size: 11pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;Keep only matching records&lt;BR /&gt; &lt;BR /&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Do a calculate on the OBJECTIDNEW field -&amp;gt; OBJECTIDNEW = joinFC.OBJECTID_1&lt;BR /&gt; &lt;/LI&gt;&lt;LI style="color: #000000; font-size: 11pt;"&gt;Remove join&lt;BR /&gt; &lt;/LI&gt;&lt;LI style="color: #000000; font-size: 11pt;"&gt;Add IGNORE field (short int) to buildingOrig &lt;SPAN style="text-decoration: underline;"&gt;attachment&lt;/SPAN&gt; table - This field is used to indicate which buildings already have attachments in the new table.&lt;BR /&gt; &lt;/LI&gt;&lt;LI style="color: #000000; font-size: 11pt;"&gt;Do a calculate on the IGNORE field to 0 for all records (had to do this bc the query during the load data to get all rows not equal to 1 or equal to null didn't work).&lt;BR /&gt; &lt;/LI&gt;&lt;LI style="color: #000000; font-size: 11pt;"&gt;Do a join between the buildingOrig &lt;SPAN style="text-decoration: underline;"&gt;attachment&lt;/SPAN&gt; table and the buildingNewSchema &lt;SPAN style="text-decoration: underline;"&gt;attachment&lt;/SPAN&gt; table:&lt;/LI&gt;&lt;/OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;UL&gt;&lt;LI&gt;buildingOrig attachment table join field: OBJECTIDNEW&lt;/LI&gt;&lt;LI style="color: #000000; font-size: 11pt;"&gt;buildingNewSchema attachment table join field: REL_OBJECTID&lt;/LI&gt;&lt;/UL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;UL&gt;&lt;LI style="color: #000000; font-size: 11pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;Keep only matching records&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Do a calculate on the IGNORE field -&amp;gt; IGNORE = 1&lt;BR /&gt; &lt;/LI&gt;&lt;LI style="color: #000000; font-size: 11pt;"&gt;Remove join&lt;BR /&gt; &lt;/LI&gt;&lt;LI style="color: #000000; font-size: 11pt;"&gt;Load Data on buildingNewSchema &lt;SPAN style="text-decoration: underline;"&gt;attachment&lt;/SPAN&gt; table&lt;OL&gt;&lt;LI style="color: #000000; font-size: 11pt;"&gt;Source data to load: buildingOrig &lt;SPAN style="text-decoration: underline;"&gt;attachment&lt;/SPAN&gt; table&lt;/LI&gt;&lt;LI style="color: #000000; font-size: 11pt;"&gt;Target and Matching Fields&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;UL&gt;&lt;LI&gt;REL_OBJECTID=OBJECTIDNEW&lt;/LI&gt;&lt;LI style="color: #000000; font-size: 11pt;"&gt;CONTENT_TYPE=CONTENT_TYPE&lt;/LI&gt;&lt;LI style="color: #000000; font-size: 11pt;"&gt;ATT_NAME=ATT_NAME&lt;/LI&gt;&lt;LI style="color: #000000; font-size: 11pt;"&gt;DATA_SIZE=DATA_SIZE&lt;/LI&gt;&lt;LI style="color: #000000; font-size: 11pt;"&gt;DATA=DATA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;OL&gt;&lt;OL&gt;&lt;LI&gt;Load only the rows that satisfy a query: IGNORE = 0&lt;BR /&gt; &lt;/LI&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;&lt;STRONG&gt;The following steps will change the attachment relationship to use GlobalIds instead of ObjectIds. This will make it easier to move attachments in the future.&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Add GlobalId to buildingNewSchema&lt;BR /&gt; &lt;/LI&gt;&lt;LI style="color: #000000; font-size: 11pt;"&gt;Add GlobalId to buildingNewSchema attachment table (if it hasn't already been added automatically)&lt;BR /&gt; &lt;/LI&gt;&lt;LI style="color: #000000; font-size: 11pt;"&gt;Run the Migrate Relationship Class tool&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 21:31:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-load-data-with-attachments-from-one-feature/m-p/467312#M18038</guid>
      <dc:creator>ValerieHanson</dc:creator>
      <dc:date>2017-05-30T21:31:52Z</dc:date>
    </item>
  </channel>
</rss>

