<?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: ArcPy Append Error: Object: Error in executing tool in ArcGIS Notebooks Questions</title>
    <link>https://community.esri.com/t5/arcgis-notebooks-questions/arcpy-append-error-object-error-in-executing-tool/m-p/1021610#M239</link>
    <description>I have imported arcpy... it's not that&lt;BR /&gt;</description>
    <pubDate>Fri, 29 Jan 2021 17:15:28 GMT</pubDate>
    <dc:creator>schwad</dc:creator>
    <dc:date>2021-01-29T17:15:28Z</dc:date>
    <item>
      <title>ArcPy Append Error: Object: Error in executing tool</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/arcpy-append-error-object-error-in-executing-tool/m-p/1021018#M237</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to append an ArcGIS Online layer to an ArcGIS Enterprise layer using a Jupyter Notebook within ArcGIS Pro but I'm faced with the error in the heading.&lt;/P&gt;&lt;P&gt;my code is as follows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Get ArcGIS Online Grouped Feature Layer 
gis1 = GIS(agol_url, agol_name, agol_pass)
agol_item = gis1.content.get(agol_item_id)
agollyr = agol_item.layers[0]

#Get ArcGIS Enterprise Feature Layer
gis = GIS(ent_url, user_name, password)
group_item = gis.content.get(group_item_id)
grouplyr = group_item.layers


arcpy.env.overwriteOutput = False

ArcGISOnlineLayer = agollyr
ArcGISEnterpriseLayer1 = grouplyr

# Process: Append (Append) 
ArcGISEnterpriseLayer = arcpy.Append_management(inputs=[ArcGISOnlineLayer], target=ArcGISEnterpriseLayer1, schema_type="TEST", field_mapping="", subtype="", expression="")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We do not have geoanalytics server hence why I'm doing this work around, very new to python and have hit a brick wall!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 15:33:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/arcpy-append-error-object-error-in-executing-tool/m-p/1021018#M237</guid>
      <dc:creator>schwad</dc:creator>
      <dc:date>2021-01-28T15:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Append Error: Object: Error in executing tool</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/arcpy-append-error-object-error-in-executing-tool/m-p/1021172#M238</link>
      <description>&lt;P&gt;It might be that you have not imported arcpy into your notebook.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't played with the notebooks in Pro yet, and I don't know if it automagically imports it for you so I could be wrong but it is my first thought looking at your code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit:&amp;nbsp; Also, it might be that you have the schema_type parameter set to Test.&amp;nbsp; from the docs: "&lt;SPAN&gt;TEST&lt;/SPAN&gt; —&lt;SPAN&gt;Fields from the input dataset must match the fields of the target dataset. An error will be returned if the fields do not match.&lt;/SPAN&gt;"&amp;nbsp; If there are any fields with different names between the two, the process will fail.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 18:58:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/arcpy-append-error-object-error-in-executing-tool/m-p/1021172#M238</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-28T18:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Append Error: Object: Error in executing tool</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/arcpy-append-error-object-error-in-executing-tool/m-p/1021610#M239</link>
      <description>I have imported arcpy... it's not that&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Jan 2021 17:15:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/arcpy-append-error-object-error-in-executing-tool/m-p/1021610#M239</guid>
      <dc:creator>schwad</dc:creator>
      <dc:date>2021-01-29T17:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Append Error: Object: Error in executing tool</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/arcpy-append-error-object-error-in-executing-tool/m-p/1021633#M240</link>
      <description>&lt;P&gt;ok, ... did you try changing the schema from Test to No_Test ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;ArcGISEnterpriseLayer = arcpy.Append_management(inputs=[ArcGISOnlineLayer], target=ArcGISEnterpriseLayer1, schema_type="No_Test")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 17:46:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/arcpy-append-error-object-error-in-executing-tool/m-p/1021633#M240</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-29T17:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Append Error: Object: Error in executing tool</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/arcpy-append-error-object-error-in-executing-tool/m-p/1022036#M241</link>
      <description>&lt;P&gt;I have just changed this, i am presented with the same problem, could it be because I'm using hosted layers instead of them being on client?&lt;/P&gt;&lt;P&gt;that being said it works fine if I am running it using the tool within pro.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 10:06:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/arcpy-append-error-object-error-in-executing-tool/m-p/1022036#M241</guid>
      <dc:creator>schwad</dc:creator>
      <dc:date>2021-02-01T10:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Append Error: Object: Error in executing tool</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/arcpy-append-error-object-error-in-executing-tool/m-p/1022057#M242</link>
      <description>&lt;P&gt;That could be.&amp;nbsp; You can open up your geoprocessing history and export the successful completion of the tool as a python script.&amp;nbsp; Then compare it to what you have in this script for ideas.&lt;/P&gt;&lt;P&gt;There is also an append in the arcpy for python api that might be what you need to use within Notebooks.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html?highlight=append#arcgis.features.FeatureLayer.append" target="_self"&gt;Append&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-online/data-management/keeping-layers-updated-by-appending-features-using-the-arcgis-api-for-python/" target="_self"&gt;keeping-layers-updated-by-appending-features-using-the-arcgis-api-for-python&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 13:13:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/arcpy-append-error-object-error-in-executing-tool/m-p/1022057#M242</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-02-01T13:13:40Z</dc:date>
    </item>
  </channel>
</rss>

