<?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: How to append two FC  one with additional fields  in Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-append-two-fc-one-with-additional-fields-in/m-p/632929#M49318</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;from...&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/append.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/append.htm"&gt;Append—Data Management toolbox | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;clear ... I think&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="color: #4c4c4c; background-color: #ffffff; font-size: 0.9375rem; margin-left: 0.775rem; margin-bottom: 1.55rem;"&gt;&lt;LI style="margin: 0.3875rem 0px 0.3875rem 1.5rem;"&gt;&lt;P style="margin-bottom: 1.55rem;"&gt;If&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="font-weight: bold;"&gt;Use the Field Map to reconcile schema differences&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is chosen (&lt;SPAN class=""&gt;schema_type = "NO_TEST"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in Python), the input dataset schema (field definitions) do not have to match the target dataset. However, any fields from the input datasets that do not match the fields of the target dataset will not be mapped to the target dataset unless the mapping is explicitly set in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="font-weight: bold;"&gt;Field Map&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;parameter.&lt;/P&gt;&lt;/LI&gt;&lt;LI style="margin: 0.3875rem 0px 0.3875rem 1.5rem;"&gt;&lt;P style="margin-bottom: 1.55rem;"&gt;Because the input datasets' data is written to an existing target dataset that has a predefined schema (field definitions), the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="font-weight: bold;"&gt;Field Map&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;parameter does not allow for fields to be added or removed from the target dataset.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So I would give it a try on copies to confirm &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Jun 2020 19:35:39 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2020-06-01T19:35:39Z</dc:date>
    <item>
      <title>How to append two FC  one with additional fields  in Python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-append-two-fc-one-with-additional-fields-in/m-p/632928#M49317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good afternoon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing a scripts that&amp;nbsp; appends records&amp;nbsp; in several FC and some of them have additional fields because the schema was&amp;nbsp; modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I use this kind of Python script with "NO_TEST"&amp;nbsp; when&amp;nbsp; I copy the same FC but the new version has more fields than the old one ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;taget_layer is the new version of source_layer but in several cases it has additional fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldmappings = arcpy.FieldMappings()&lt;/P&gt;&lt;P&gt;#Like when you manually choose a layer in the toolbox and it adds the fields to grid&lt;BR /&gt;fieldmappings.addTable(target_layer)&lt;BR /&gt;fieldmappings.addTable(append_layer)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;arcpy.Append_management(&lt;SPAN&gt;append_laye&lt;/SPAN&gt;, target_layer, 'NO_TEST', ffieldmappings)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2020 19:13:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-append-two-fc-one-with-additional-fields-in/m-p/632928#M49317</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2020-06-01T19:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to append two FC  one with additional fields  in Python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-append-two-fc-one-with-additional-fields-in/m-p/632929#M49318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;from...&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/append.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/append.htm"&gt;Append—Data Management toolbox | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;clear ... I think&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="color: #4c4c4c; background-color: #ffffff; font-size: 0.9375rem; margin-left: 0.775rem; margin-bottom: 1.55rem;"&gt;&lt;LI style="margin: 0.3875rem 0px 0.3875rem 1.5rem;"&gt;&lt;P style="margin-bottom: 1.55rem;"&gt;If&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="font-weight: bold;"&gt;Use the Field Map to reconcile schema differences&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is chosen (&lt;SPAN class=""&gt;schema_type = "NO_TEST"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in Python), the input dataset schema (field definitions) do not have to match the target dataset. However, any fields from the input datasets that do not match the fields of the target dataset will not be mapped to the target dataset unless the mapping is explicitly set in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="font-weight: bold;"&gt;Field Map&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;parameter.&lt;/P&gt;&lt;/LI&gt;&lt;LI style="margin: 0.3875rem 0px 0.3875rem 1.5rem;"&gt;&lt;P style="margin-bottom: 1.55rem;"&gt;Because the input datasets' data is written to an existing target dataset that has a predefined schema (field definitions), the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="font-weight: bold;"&gt;Field Map&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;parameter does not allow for fields to be added or removed from the target dataset.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So I would give it a try on copies to confirm &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2020 19:35:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-append-two-fc-one-with-additional-fields-in/m-p/632929#M49318</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-06-01T19:35:39Z</dc:date>
    </item>
  </channel>
</rss>

