<?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: Attempt to Append() FGDB to Hosted Feature Service Using API for Python in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/attempt-to-append-fgdb-to-hosted-feature-service/m-p/1523210#M10438</link>
    <description>&lt;P&gt;Hi George,&lt;/P&gt;&lt;P&gt;Have you tried this?:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;input_source = f"{gdb_path}//{feature_class_name}" # Note the double slash
append_result = feature_layer.append(item_id=None, upload_format="filegdb", source_table_name=input_source, upsert=False)&lt;/LI-CODE&gt;&lt;P&gt;Let me know what happens.&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;</description>
    <pubDate>Sat, 17 Aug 2024 03:02:21 GMT</pubDate>
    <dc:creator>BBowers_napacounty</dc:creator>
    <dc:date>2024-08-17T03:02:21Z</dc:date>
    <item>
      <title>Attempt to Append() FGDB to Hosted Feature Service Using API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/attempt-to-append-fgdb-to-hosted-feature-service/m-p/1522980#M10437</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to Append data from a feature class in a file geodatabase using API for Python.&lt;/P&gt;&lt;P&gt;In the past I had used ArcPy, however the process of doing so is slow and ESRI staff had suggested using API for Python instead.&amp;nbsp; I have been trying to test a few option and keep failing to do so successfully.&lt;/P&gt;&lt;P&gt;This is my current attempt, however I keep getting an error stating:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;TypeError&lt;/SPAN&gt;: append() got an unexpected keyword argument 'input_source'&lt;/PRE&gt;&lt;P&gt;I have removed my credentials and masked my domain info for obvious reasons.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS
from arcgis.features import FeatureLayer

# Step 1: Connect to your GIS
gis = GIS("", "", "")

# Step 2: Access the hosted feature layer
feature_layer_url = "https://xyzxyz.xyzxyz.com/server/rest/services/Hosted/hailDB/FeatureServer/0"
feature_layer = FeatureLayer(feature_layer_url)

# Step 3: Append new features from a file geodatabase
gdb_path = r"D:\gisData\services\hail\data\hailDB_update.gdb"
feature_class_name = "hail_update"

# Construct the input source URL for the file geodatabase
input_source = f"{gdb_path}/{feature_class_name}"

# Use the append method
append_result = feature_layer.append(item_id=None, upload_format="filegdb", source_table_name=feature_class_name, upsert=False, input_source=input_source)

# Step 4: Check the result
if append_result:
    print("Features appended successfully!")
else:
    print("Failed to append features.")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I change line 19 to use an uploaded file geodatabase within my Portal environment with this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;success = append_result = feature_layer.append(item_id='xxxxxxxxxxxxxxxxxxxx...', upload_format="filegdb", upsert=False, source_table_name=feature_class_name)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get an error stating: Operation Failed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have verified that the Spatial References are the same.&lt;/P&gt;&lt;P&gt;Any ideas or examples on what has worked for others?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 16:05:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/attempt-to-append-fgdb-to-hosted-feature-service/m-p/1522980#M10437</guid>
      <dc:creator>ghaskett_aaic</dc:creator>
      <dc:date>2024-08-16T16:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Attempt to Append() FGDB to Hosted Feature Service Using API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/attempt-to-append-fgdb-to-hosted-feature-service/m-p/1523210#M10438</link>
      <description>&lt;P&gt;Hi George,&lt;/P&gt;&lt;P&gt;Have you tried this?:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;input_source = f"{gdb_path}//{feature_class_name}" # Note the double slash
append_result = feature_layer.append(item_id=None, upload_format="filegdb", source_table_name=input_source, upsert=False)&lt;/LI-CODE&gt;&lt;P&gt;Let me know what happens.&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2024 03:02:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/attempt-to-append-fgdb-to-hosted-feature-service/m-p/1523210#M10438</guid>
      <dc:creator>BBowers_napacounty</dc:creator>
      <dc:date>2024-08-17T03:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Attempt to Append() FGDB to Hosted Feature Service Using API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/attempt-to-append-fgdb-to-hosted-feature-service/m-p/1523843#M10440</link>
      <description>&lt;P&gt;I have tried it with '/' and '//', both failed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ghaskett_aaic_0-1724081626560.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/112758i49B8824845D1A5B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ghaskett_aaic_0-1724081626560.png" alt="ghaskett_aaic_0-1724081626560.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Neither Notebook nor Python give me a decent error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 16:20:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/attempt-to-append-fgdb-to-hosted-feature-service/m-p/1523843#M10440</guid>
      <dc:creator>ghaskett_aaic</dc:creator>
      <dc:date>2024-08-19T16:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Attempt to Append() FGDB to Hosted Feature Service Using API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/attempt-to-append-fgdb-to-hosted-feature-service/m-p/1525120#M10457</link>
      <description>&lt;P&gt;Hello Brian,&lt;/P&gt;&lt;P&gt;Does this work on your end?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 14:55:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/attempt-to-append-fgdb-to-hosted-feature-service/m-p/1525120#M10457</guid>
      <dc:creator>ghaskett_aaic</dc:creator>
      <dc:date>2024-08-21T14:55:38Z</dc:date>
    </item>
  </channel>
</rss>

