<?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>idea Enhance the .append() function to support appending attachments in ArcGIS API for Python Ideas</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-ideas/enhance-the-append-function-to-support-appending/idi-p/1578104</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Request:&lt;/STRONG&gt;&lt;BR /&gt;Enhance the &lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.features.toc.html#arcgis.features.FeatureLayer.append" target="_self"&gt;arcgis.features.FeatureLayer.append()&lt;/A&gt;&amp;nbsp;and &lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.features.toc.html#arcgis.features.Table.append" target="_self"&gt;arcgis.features.Table.append()&amp;nbsp;&lt;/A&gt;functions in ArcGIS API for Python to support appending attachments along with features, improving efficiency of bulk attachments addition for large datasets.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Current Limitations:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT size="3"&gt;While ArcPy's&lt;/FONT&gt;&amp;nbsp;arcpy.management.Append()&amp;nbsp;supports appending attachments when setting the &lt;A href="https://pro.arcgis.com/en/pro-app/3.3/tool-reference/environment-settings/maintain-attachments.htm" target="_self"&gt;Maintain Attachments Environment setting&lt;/A&gt; to True, it does not preserve Global IDs when appending to hosted feature layers, even if setting the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/environment-settings/preserve-globalids.htm" target="_self"&gt;Preserve GlobalIDs Environment setting&lt;/A&gt; to True - See&amp;nbsp;&lt;A href="https://support.esri.com/en-us/bug/unable-to-use-the-append-tool-in-arcgis-pro-on-hosted-f-bug-000133544" target="_self"&gt;&lt;STRONG&gt;BUG-000133544&lt;/STRONG&gt;'s additional information&lt;/A&gt;.&lt;/LI&gt;&lt;LI&gt;arcgis.features.FeatureLayer.append() does not support appending attachments and the &lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/append-feature-service-layer/" target="_self"&gt;Append REST API&lt;/A&gt; does not have that parameter.&lt;/LI&gt;&lt;LI&gt;Alternative methods (&lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.features.toc.html#arcgis.features.FeatureLayer.edit_features" target="_self"&gt;edit_features()&lt;/A&gt; and &lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.features.managers.html#arcgis.features.managers.AttachmentManager.add" target="_self"&gt;AttachmentManager.add()&lt;/A&gt;) allow adding attachments but are inefficient for large datasets.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Esri’s &lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.features.toc.html#arcgis.features.FeatureLayer.edit_features" target="_self"&gt;documentation&lt;/A&gt; recommends using append() over edit_features() for large edits (250+ records), yet append() lacks attachment support.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Justification:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Efficient bulk appending of both features and attachments is needed.&lt;/LI&gt;&lt;LI&gt;Current workaround&amp;nbsp;adding attachments (edit_features()&amp;nbsp;and&amp;nbsp;AttachmentManager.add()) after appending features) is inefficient for large datasets.&lt;/LI&gt;&lt;LI&gt;Aligning append() with Esri’s own performance recommendations would improve usability.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: Found the following related questions about this subject in Esri Community:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/python-questions/arcgis-api-for-python-append-does-not-maintain/td-p/1246159" target="_blank" rel="noopener"&gt;ArcGIS API for Python Append Does not Maintain Att... - Esri Community&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/copy-attachments-from-one-feature-layer-to-another/td-p/1202511" target="_blank" rel="noopener"&gt;Solved: Copy attachments from one feature layer to another - Esri Community&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jan 2025 05:18:47 GMT</pubDate>
    <dc:creator>DanaAbumourhMAG</dc:creator>
    <dc:date>2025-01-23T05:18:47Z</dc:date>
    <item>
      <title>Enhance the .append() function to support appending attachments</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-ideas/enhance-the-append-function-to-support-appending/idi-p/1578104</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Request:&lt;/STRONG&gt;&lt;BR /&gt;Enhance the &lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.features.toc.html#arcgis.features.FeatureLayer.append" target="_self"&gt;arcgis.features.FeatureLayer.append()&lt;/A&gt;&amp;nbsp;and &lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.features.toc.html#arcgis.features.Table.append" target="_self"&gt;arcgis.features.Table.append()&amp;nbsp;&lt;/A&gt;functions in ArcGIS API for Python to support appending attachments along with features, improving efficiency of bulk attachments addition for large datasets.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Current Limitations:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT size="3"&gt;While ArcPy's&lt;/FONT&gt;&amp;nbsp;arcpy.management.Append()&amp;nbsp;supports appending attachments when setting the &lt;A href="https://pro.arcgis.com/en/pro-app/3.3/tool-reference/environment-settings/maintain-attachments.htm" target="_self"&gt;Maintain Attachments Environment setting&lt;/A&gt; to True, it does not preserve Global IDs when appending to hosted feature layers, even if setting the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/environment-settings/preserve-globalids.htm" target="_self"&gt;Preserve GlobalIDs Environment setting&lt;/A&gt; to True - See&amp;nbsp;&lt;A href="https://support.esri.com/en-us/bug/unable-to-use-the-append-tool-in-arcgis-pro-on-hosted-f-bug-000133544" target="_self"&gt;&lt;STRONG&gt;BUG-000133544&lt;/STRONG&gt;'s additional information&lt;/A&gt;.&lt;/LI&gt;&lt;LI&gt;arcgis.features.FeatureLayer.append() does not support appending attachments and the &lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/append-feature-service-layer/" target="_self"&gt;Append REST API&lt;/A&gt; does not have that parameter.&lt;/LI&gt;&lt;LI&gt;Alternative methods (&lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.features.toc.html#arcgis.features.FeatureLayer.edit_features" target="_self"&gt;edit_features()&lt;/A&gt; and &lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.features.managers.html#arcgis.features.managers.AttachmentManager.add" target="_self"&gt;AttachmentManager.add()&lt;/A&gt;) allow adding attachments but are inefficient for large datasets.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Esri’s &lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.features.toc.html#arcgis.features.FeatureLayer.edit_features" target="_self"&gt;documentation&lt;/A&gt; recommends using append() over edit_features() for large edits (250+ records), yet append() lacks attachment support.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Justification:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Efficient bulk appending of both features and attachments is needed.&lt;/LI&gt;&lt;LI&gt;Current workaround&amp;nbsp;adding attachments (edit_features()&amp;nbsp;and&amp;nbsp;AttachmentManager.add()) after appending features) is inefficient for large datasets.&lt;/LI&gt;&lt;LI&gt;Aligning append() with Esri’s own performance recommendations would improve usability.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: Found the following related questions about this subject in Esri Community:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/python-questions/arcgis-api-for-python-append-does-not-maintain/td-p/1246159" target="_blank" rel="noopener"&gt;ArcGIS API for Python Append Does not Maintain Att... - Esri Community&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/copy-attachments-from-one-feature-layer-to-another/td-p/1202511" target="_blank" rel="noopener"&gt;Solved: Copy attachments from one feature layer to another - Esri Community&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 05:18:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-ideas/enhance-the-append-function-to-support-appending/idi-p/1578104</guid>
      <dc:creator>DanaAbumourhMAG</dc:creator>
      <dc:date>2025-01-23T05:18:47Z</dc:date>
    </item>
  </channel>
</rss>

