<?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 Which method is better, truncating the attachment table or using remove attachments? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/which-method-is-better-truncating-the-attachment/m-p/1204633#M65367</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a simple yet general question. I have a script that adds attachments to a related table. However, whenever I script to renew the attachments(remove and add attachments), it seems that they don't attach to the correct records.&lt;/P&gt;&lt;P&gt;My question is, would it be better to write my script to recreate the table to then&amp;nbsp;&lt;A title="Remove Attachments" href="https://pro.arcgis.com/en/pro-app/2.8/tool-reference/data-management/remove-attachments.htm" target="_blank" rel="noopener"&gt;remove attachments&lt;/A&gt;&amp;nbsp;or would the truncate option work as well? I am trying to configure my code to so that the attachments (in the future) are are kept up to date and account for any additional changes.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Aug 2022 17:16:52 GMT</pubDate>
    <dc:creator>RPGIS</dc:creator>
    <dc:date>2022-08-19T17:16:52Z</dc:date>
    <item>
      <title>Which method is better, truncating the attachment table or using remove attachments?</title>
      <link>https://community.esri.com/t5/python-questions/which-method-is-better-truncating-the-attachment/m-p/1204633#M65367</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a simple yet general question. I have a script that adds attachments to a related table. However, whenever I script to renew the attachments(remove and add attachments), it seems that they don't attach to the correct records.&lt;/P&gt;&lt;P&gt;My question is, would it be better to write my script to recreate the table to then&amp;nbsp;&lt;A title="Remove Attachments" href="https://pro.arcgis.com/en/pro-app/2.8/tool-reference/data-management/remove-attachments.htm" target="_blank" rel="noopener"&gt;remove attachments&lt;/A&gt;&amp;nbsp;or would the truncate option work as well? I am trying to configure my code to so that the attachments (in the future) are are kept up to date and account for any additional changes.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 17:16:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/which-method-is-better-truncating-the-attachment/m-p/1204633#M65367</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2022-08-19T17:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Which method is better, truncating the attachment table or using remove attachments?</title>
      <link>https://community.esri.com/t5/python-questions/which-method-is-better-truncating-the-attachment/m-p/1204713#M65372</link>
      <description>&lt;P&gt;Some tables (I think versioned tables) will not allow you to truncate. If the the attachments are not attaching to the right record in your refresh script without recreating the whole table, I'd step through it with the debugger and figure out why.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 19:50:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/which-method-is-better-truncating-the-attachment/m-p/1204713#M65372</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-08-19T19:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Which method is better, truncating the attachment table or using remove attachments?</title>
      <link>https://community.esri.com/t5/python-questions/which-method-is-better-truncating-the-attachment/m-p/1204784#M65374</link>
      <description>&lt;P&gt;That's what I'm working on. I'm rewriting that part of my script to remove and update the attachments. The script is complicated in such that it exports pdfs from a map series and then sets those as attachments.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Aug 2022 19:07:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/which-method-is-better-truncating-the-attachment/m-p/1204784#M65374</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2022-08-20T19:07:41Z</dc:date>
    </item>
  </channel>
</rss>

