<?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: Append from AGOL to SDE in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/append-from-agol-to-sde/m-p/1372930#M9566</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/633156"&gt;@kapalczynski&lt;/a&gt;&amp;nbsp;- I am trying to do the same thing and I had a question for you. Does this process handle any attachments that may be with the AGO records?&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jan 2024 15:45:16 GMT</pubDate>
    <dc:creator>luckachi</dc:creator>
    <dc:date>2024-01-22T15:45:16Z</dc:date>
    <item>
      <title>Append from AGOL to SDE</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/append-from-agol-to-sde/m-p/1362550#M9435</link>
      <description>&lt;P&gt;Wondering if I am hitting a limitation or what...&lt;/P&gt;&lt;P&gt;I am trying to Append Data from my AGOL site to my internal Oracle SDE DB&lt;/P&gt;&lt;P&gt;It seems to accept the sourceURL but fails targetURL&lt;/P&gt;&lt;P&gt;Is there an issue that I am trying to append to a Table and not a Feature Class....&lt;/P&gt;&lt;P&gt;any other thoughts?&lt;/P&gt;&lt;LI-CODE lang="c"&gt;import arcpy
import arcgis
from arcgis import GIS

arcpy.env.overwriteOutput = True

gis = GIS("https://www.maps.arcgis.com/home", "username", "password")
currenttoken = gis._con.token

sourceURL = "https://services.arcgis.com/p5vkdfgdfgf/arcgis/rest/services/Inventory/FeatureServer/8?token=" + currenttoken + "sublayer=0"

targetURL = "Database Connections\\GIS_DEV@gis_guest.sde\\GIS_DATA.TBL_MS4_PermPaveInsp"

with arcpy.EnvManager(preserveGlobalIds=True):
    arcpy.management.Append(sourceURL, targetURL, "TEST_AND_SKIP", None, '', '')
    &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR:&lt;/P&gt;&lt;P&gt;arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000732: Target Dataset: Dataset Database Connections\GIS_DEV@gis_guest.sde\GIS_DATA.TBL_MS4_PermPaveInsp does not exist or is not supported&lt;BR /&gt;Failed to execute (Append).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 15:20:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/append-from-agol-to-sde/m-p/1362550#M9435</guid>
      <dc:creator>kapalczynski</dc:creator>
      <dc:date>2023-12-19T15:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Append from AGOL to SDE</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/append-from-agol-to-sde/m-p/1362554#M9436</link>
      <description>&lt;P&gt;Never mind .... feel foolish I had the SDE connection file name wrong.... uggggg&lt;/P&gt;&lt;P&gt;it was&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/76908"&gt;@GIS&lt;/a&gt;_data not &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/76908"&gt;@GIS&lt;/a&gt;_guest... boy I feel foolish....&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 15:25:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/append-from-agol-to-sde/m-p/1362554#M9436</guid>
      <dc:creator>kapalczynski</dc:creator>
      <dc:date>2023-12-19T15:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Append from AGOL to SDE</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/append-from-agol-to-sde/m-p/1372930#M9566</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/633156"&gt;@kapalczynski&lt;/a&gt;&amp;nbsp;- I am trying to do the same thing and I had a question for you. Does this process handle any attachments that may be with the AGO records?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 15:45:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/append-from-agol-to-sde/m-p/1372930#M9566</guid>
      <dc:creator>luckachi</dc:creator>
      <dc:date>2024-01-22T15:45:16Z</dc:date>
    </item>
  </channel>
</rss>

