<?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 Re: Copy FC With Attachments With Python or ModelBuilder in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/copy-fc-with-attachments-with-python-or/m-p/136750#M10720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maintain Attachments is not available at 10.4.x...so&amp;nbsp;did you&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;try&amp;nbsp;to export to an XML workspace document and then import that in the other gdb? Will that work?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jan 2018 04:06:35 GMT</pubDate>
    <dc:creator>Asrujit_SenGupta</dc:creator>
    <dc:date>2018-01-24T04:06:35Z</dc:date>
    <item>
      <title>Copy FC With Attachments With Python or ModelBuilder</title>
      <link>https://community.esri.com/t5/python-questions/copy-fc-with-attachments-with-python-or/m-p/136747#M10717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you copy FCs with attachments from one geodatabase to another? ArcCatalog works fine but can it be done in ModelBuilder or Python?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With ArcCatalog when the feature has a related table with attachments it copies everything together. But in Python or ModelBuilder what command do I use? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jan 2018 14:42:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copy-fc-with-attachments-with-python-or/m-p/136747#M10717</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2018-01-21T14:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Copy FC With Attachments With Python or ModelBuilder</title>
      <link>https://community.esri.com/t5/python-questions/copy-fc-with-attachments-with-python-or/m-p/136748#M10718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try&amp;nbsp;to export to an XML workspace document and then import that in the other gdb?&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.5/tools/data-management-toolbox/export-xml-workspace-document.htm" title="http://desktop.arcgis.com/en/arcmap/10.5/tools/data-management-toolbox/export-xml-workspace-document.htm"&gt;Export XML Workspace Document—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.5/tools/data-management-toolbox/import-xml-workspace-document.htm" title="http://desktop.arcgis.com/en/arcmap/10.5/tools/data-management-toolbox/import-xml-workspace-document.htm"&gt;Import XML Workspace Document—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check&amp;nbsp;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/environment-settings/maintain-attachments.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/environment-settings/maintain-attachments.htm"&gt;Maintain Attachments (Environment setting)—Geoprocessing | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jan 2018 15:44:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copy-fc-with-attachments-with-python-or/m-p/136748#M10718</guid>
      <dc:creator>Asrujit_SenGupta</dc:creator>
      <dc:date>2018-01-21T15:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Copy FC With Attachments With Python or ModelBuilder</title>
      <link>https://community.esri.com/t5/python-questions/copy-fc-with-attachments-with-python-or/m-p/136749#M10719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using ArcGIS 10.4.1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 20:33:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copy-fc-with-attachments-with-python-or/m-p/136749#M10719</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2018-01-23T20:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Copy FC With Attachments With Python or ModelBuilder</title>
      <link>https://community.esri.com/t5/python-questions/copy-fc-with-attachments-with-python-or/m-p/136750#M10720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maintain Attachments is not available at 10.4.x...so&amp;nbsp;did you&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;try&amp;nbsp;to export to an XML workspace document and then import that in the other gdb? Will that work?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 04:06:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copy-fc-with-attachments-with-python-or/m-p/136750#M10720</guid>
      <dc:creator>Asrujit_SenGupta</dc:creator>
      <dc:date>2018-01-24T04:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Copy FC With Attachments With Python or ModelBuilder</title>
      <link>https://community.esri.com/t5/python-questions/copy-fc-with-attachments-with-python-or/m-p/136751#M10721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't tested the option of exporting to an XML workspace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What we need is to be able to work at the feature level. We have a feature class with attachments and we run a python script that&amp;nbsp;archives records&amp;nbsp;in anther feature created for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The job currently selects features from the main feature class, and copies them to the archive&amp;nbsp;FC, then deletes these same features from the main FC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what we need for each feature candidate to be archived:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;append a feature in FC archive, &amp;nbsp;with corresponding attachment.&lt;/LI&gt;&lt;LI&gt;remove feature to&amp;nbsp;from FC main FC&amp;nbsp;its attachments&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am thinking about modifying this script &lt;A _jive_internal="true" href="https://community.esri.com/thread/82988"&gt;https://community.esri.com/thread/82988&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;To add a new feature:&lt;UL&gt;&lt;LI&gt;Append feature in FC archive&lt;/LI&gt;&lt;LI&gt;Find records in attached table from FC main&lt;/LI&gt;&lt;LI&gt;Append record in attached table from FC archive&lt;/LI&gt;&lt;LI&gt;update REL_OBJECTID with corresponding FC Archive OBJECTID&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;To remove feature from FC main&lt;UL&gt;&lt;LI&gt;remove related attachment records&lt;/LI&gt;&lt;LI&gt;remove features&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 13:09:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copy-fc-with-attachments-with-python-or/m-p/136751#M10721</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2018-01-24T13:09:18Z</dc:date>
    </item>
  </channel>
</rss>

