<?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 Append_management Not Honoring Selected Features in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/append-management-not-honoring-selected-features/m-p/443217#M34686</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been trying to write a simple script to append features (currently&amp;nbsp;using ArcMap 10.6) that were created in a "working" file gdb to a "master" file gdb. The feature classes have the same fields and are both in feature data-sets. The "master" generally resides on an office wide server while "working" is local. Where it goes wrong is the stand alone script copies all features in the feature class, not just the selected features.&amp;nbsp;&lt;SPAN&gt;Append&amp;nbsp;honors selected features&amp;nbsp;when run from python in ArcMap and from the GUI tool. Also experiencing the same issue if I create an append model.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What I have tried: "NO_TEST" and "TEST", setting the "working"&amp;nbsp;gdb as the work-space,&amp;nbsp;placing the file pathways directly into Append_management,&amp;nbsp;placing a copy&amp;nbsp;of the "master" onto my computer. I have even tried&amp;nbsp;creating temp gdbs, one with the "working" feature class and one with the "master" with no change.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Going to test this on a different computer&amp;nbsp;that has ArcMap 10.7 and in ArcGIS Pro 2.3 (can't use this computer at work though) and see if I can replicate it.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy

in_feature &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"C:\\\\Working_GDBs\Central.gdb\Lands\Disposals"&lt;/SPAN&gt;
out_feature &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"C:\\\\Master_GDBs\Central.gdb\Lands_Master\Lands_Disposals"&lt;/SPAN&gt;

schema &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"TEST"&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Append_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;in_feature&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; out_feature&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; schema&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Append Completed"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 19:49:21 GMT</pubDate>
    <dc:creator>JCann</dc:creator>
    <dc:date>2021-12-11T19:49:21Z</dc:date>
    <item>
      <title>Append_management Not Honoring Selected Features</title>
      <link>https://community.esri.com/t5/python-questions/append-management-not-honoring-selected-features/m-p/443217#M34686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been trying to write a simple script to append features (currently&amp;nbsp;using ArcMap 10.6) that were created in a "working" file gdb to a "master" file gdb. The feature classes have the same fields and are both in feature data-sets. The "master" generally resides on an office wide server while "working" is local. Where it goes wrong is the stand alone script copies all features in the feature class, not just the selected features.&amp;nbsp;&lt;SPAN&gt;Append&amp;nbsp;honors selected features&amp;nbsp;when run from python in ArcMap and from the GUI tool. Also experiencing the same issue if I create an append model.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What I have tried: "NO_TEST" and "TEST", setting the "working"&amp;nbsp;gdb as the work-space,&amp;nbsp;placing the file pathways directly into Append_management,&amp;nbsp;placing a copy&amp;nbsp;of the "master" onto my computer. I have even tried&amp;nbsp;creating temp gdbs, one with the "working" feature class and one with the "master" with no change.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Going to test this on a different computer&amp;nbsp;that has ArcMap 10.7 and in ArcGIS Pro 2.3 (can't use this computer at work though) and see if I can replicate it.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy

in_feature &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"C:\\\\Working_GDBs\Central.gdb\Lands\Disposals"&lt;/SPAN&gt;
out_feature &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"C:\\\\Master_GDBs\Central.gdb\Lands_Master\Lands_Disposals"&lt;/SPAN&gt;

schema &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"TEST"&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Append_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;in_feature&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; out_feature&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; schema&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Append Completed"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:49:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/append-management-not-honoring-selected-features/m-p/443217#M34686</guid>
      <dc:creator>JCann</dc:creator>
      <dc:date>2021-12-11T19:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Append_management Not Honoring Selected Features</title>
      <link>https://community.esri.com/t5/python-questions/append-management-not-honoring-selected-features/m-p/443218#M34687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this a stand alone script run outside of the ArcGIS UI's?&lt;/P&gt;&lt;P&gt;If so... your script has no selection so it will append everything.&lt;/P&gt;&lt;P&gt;In the script you will need to create a layer based on the in_layer, make a selection (SelectLayerByAttribute, SelectLayerByLocation, etc) and then run Append.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2019 15:50:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/append-management-not-honoring-selected-features/m-p/443218#M34687</guid>
      <dc:creator>KenHartling</dc:creator>
      <dc:date>2019-05-15T15:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Append_management Not Honoring Selected Features</title>
      <link>https://community.esri.com/t5/python-questions/append-management-not-honoring-selected-features/m-p/443219#M34688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;SPAN&gt;I am new to python and&amp;nbsp;&lt;/SPAN&gt;that is not entirely clear in the documentation for Append_management, or at least not to me. This gives me a starting point at least and it also means that this may not work for what I need it to do.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2019 15:58:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/append-management-not-honoring-selected-features/m-p/443219#M34688</guid>
      <dc:creator>JCann</dc:creator>
      <dc:date>2019-05-15T15:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Append_management Not Honoring Selected Features</title>
      <link>https://community.esri.com/t5/python-questions/append-management-not-honoring-selected-features/m-p/443220#M34689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As a suggestion I would drop the last two optional parameters.&amp;nbsp; Unless it was a copy/past issue, you used " ", instead of "" (ie there should be no space in the method.&amp;nbsp; It is often safer to used named parameters rather than relying on fixed variables&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Append_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;in_feature&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; out_feature&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; schema&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍
&lt;SPAN class="comment token"&gt;# or&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Append_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;in_feature&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; out_feature&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; schema_type&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"TEST"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:49:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/append-management-not-honoring-selected-features/m-p/443220#M34689</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T19:49:23Z</dc:date>
    </item>
  </channel>
</rss>

