<?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 Features From AGOL service to GDB in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/append-features-from-agol-service-to-gdb/m-p/1207812#M59266</link>
    <description>&lt;P&gt;Hello, I need to add feature from AGOL service to a GDB using the append function of Arcpy. I need to run that from a python script absolutely. Here is my line of code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;result = arcpy.management.Append(Feature url &lt;SPAN&gt;, gdbPath,&lt;/SPAN&gt; &lt;SPAN&gt;"NO_TEST"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;params&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;''&lt;/SPAN&gt;&lt;SPAN&gt;, ''&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;It's work fine in ArcGIS Pro, but not when I run my python code. It's return me the error 00732.&lt;/P&gt;&lt;P&gt;Here are the error messages I got :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;syntax error, unexpected WORD_WORD, expecting SCAN_ATTR or SCAN_DATASET or SCAN_ERROR&lt;BR /&gt;context: &amp;lt;html^ lang="en"&amp;gt;&amp;lt;head&amp;gt; &amp;lt;title&amp;gt;Home&amp;lt;/title&amp;gt; &amp;lt;link href='/ESRI.ArcGIS.SDS.REST.css' rel='stylesheet' type='text/css'&amp;gt; &amp;lt;link rel='SHORTCUT ICON' href='/favicon.ico'&amp;gt;&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/&amp;gt; &amp;lt;meta name="keywords" content="ArcGIS REST Services Directory Root"&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&amp;lt;table width="100%" id="userTable" class="userTable"&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td class="titlecell"&amp;gt;ArcGIS REST Services Directory&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;table id="navTable" class="navTable" width="100%"&amp;gt;&amp;lt;tbody&amp;gt;&amp;lt;tr valign="top"&amp;gt;&amp;lt;td class="breadcrumbs"&amp;gt;&amp;lt;span id="homeBreadcrumbs"&amp;gt;&amp;lt;a href="/0o8QNvTvT8ZVNsRw/ArcGIS/rest/services"&amp;gt;Home&amp;lt;/a&amp;gt; &amp;gt; &amp;lt;a href="/0o8QNvTvT8ZVNsRw/ArcGIS/rest/services"&amp;gt;services&amp;lt;/a&amp;gt; &amp;lt;/span&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align="right"&amp;gt; | &amp;lt;a href="&lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/" target="_blank"&gt;http://resources.arcgis.com/en/help/arcgis-rest-api/&lt;/A&gt;" target="_blank"&amp;gt;API Reference&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/tbody&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;div id="jsonLinkTable"&amp;gt;&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td class="apiref"&amp;gt;&amp;lt;a href="?f=pjson" target="_blank"&amp;gt;JSON&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div class='restHeader'&amp;gt;&amp;lt;h2&amp;gt;Home&amp;lt;/h2&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div class='restBody'&amp;gt;&amp;lt;div class="restErrors"&amp;gt;Token Required&amp;lt;br/&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;&lt;BR /&gt;arcgisscripting.ExecuteError: Échec de l’exécution. Les paramètres ne sont pas valides.&lt;BR /&gt;ERROR 000732: urlService doesn't exist or not take in charge&lt;BR /&gt;Échec de l’exécution de (Append).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the help&lt;/P&gt;</description>
    <pubDate>Tue, 30 Aug 2022 17:32:28 GMT</pubDate>
    <dc:creator>XavierRouxRacine1</dc:creator>
    <dc:date>2022-08-30T17:32:28Z</dc:date>
    <item>
      <title>Append Features From AGOL service to GDB</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/append-features-from-agol-service-to-gdb/m-p/1207812#M59266</link>
      <description>&lt;P&gt;Hello, I need to add feature from AGOL service to a GDB using the append function of Arcpy. I need to run that from a python script absolutely. Here is my line of code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;result = arcpy.management.Append(Feature url &lt;SPAN&gt;, gdbPath,&lt;/SPAN&gt; &lt;SPAN&gt;"NO_TEST"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;params&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;''&lt;/SPAN&gt;&lt;SPAN&gt;, ''&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;It's work fine in ArcGIS Pro, but not when I run my python code. It's return me the error 00732.&lt;/P&gt;&lt;P&gt;Here are the error messages I got :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;syntax error, unexpected WORD_WORD, expecting SCAN_ATTR or SCAN_DATASET or SCAN_ERROR&lt;BR /&gt;context: &amp;lt;html^ lang="en"&amp;gt;&amp;lt;head&amp;gt; &amp;lt;title&amp;gt;Home&amp;lt;/title&amp;gt; &amp;lt;link href='/ESRI.ArcGIS.SDS.REST.css' rel='stylesheet' type='text/css'&amp;gt; &amp;lt;link rel='SHORTCUT ICON' href='/favicon.ico'&amp;gt;&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/&amp;gt; &amp;lt;meta name="keywords" content="ArcGIS REST Services Directory Root"&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&amp;lt;table width="100%" id="userTable" class="userTable"&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td class="titlecell"&amp;gt;ArcGIS REST Services Directory&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;table id="navTable" class="navTable" width="100%"&amp;gt;&amp;lt;tbody&amp;gt;&amp;lt;tr valign="top"&amp;gt;&amp;lt;td class="breadcrumbs"&amp;gt;&amp;lt;span id="homeBreadcrumbs"&amp;gt;&amp;lt;a href="/0o8QNvTvT8ZVNsRw/ArcGIS/rest/services"&amp;gt;Home&amp;lt;/a&amp;gt; &amp;gt; &amp;lt;a href="/0o8QNvTvT8ZVNsRw/ArcGIS/rest/services"&amp;gt;services&amp;lt;/a&amp;gt; &amp;lt;/span&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align="right"&amp;gt; | &amp;lt;a href="&lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/" target="_blank"&gt;http://resources.arcgis.com/en/help/arcgis-rest-api/&lt;/A&gt;" target="_blank"&amp;gt;API Reference&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/tbody&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;div id="jsonLinkTable"&amp;gt;&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td class="apiref"&amp;gt;&amp;lt;a href="?f=pjson" target="_blank"&amp;gt;JSON&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div class='restHeader'&amp;gt;&amp;lt;h2&amp;gt;Home&amp;lt;/h2&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div class='restBody'&amp;gt;&amp;lt;div class="restErrors"&amp;gt;Token Required&amp;lt;br/&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;&lt;BR /&gt;arcgisscripting.ExecuteError: Échec de l’exécution. Les paramètres ne sont pas valides.&lt;BR /&gt;ERROR 000732: urlService doesn't exist or not take in charge&lt;BR /&gt;Échec de l’exécution de (Append).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the help&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 17:32:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/append-features-from-agol-service-to-gdb/m-p/1207812#M59266</guid>
      <dc:creator>XavierRouxRacine1</dc:creator>
      <dc:date>2022-08-30T17:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Append Features From AGOL service to GDB</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/append-features-from-agol-service-to-gdb/m-p/1208804#M59404</link>
      <description>&lt;P&gt;This is working for me to do just that:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
arcpy.env.preserveGlobalIds = True


Signs = r'Database Connections\SignsDatabase.sde\SignsDatabase.DBO.Signs'

L0Sign = r"https://services3.arcgis.com/asdfsagasdfsd/ArcGIS/rest/services/hostedfeaturelayer/FeatureServer/0"

SignTable =  arcpy.FeatureSet()
SignTable.load(L0Sign)

 
       
with arcpy.EnvManager(preserveGlobalIds=True, scratchWorkspace=r"C:\SSA\SSA_project\Default.gdb", workspace=r"C:\SSA\SSA_project\Default.gdb"):

       Signs = arcpy.management.Append(inputs=[L0Sign], target=Signs, schema_type="TEST", field_mapping="", subtype="", "")[0]&lt;/LI-CODE&gt;&lt;P&gt;R_&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 17:45:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/append-features-from-agol-service-to-gdb/m-p/1208804#M59404</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-09-01T17:45:38Z</dc:date>
    </item>
  </channel>
</rss>

