<?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 Feature layer overwrite not working in notebook in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/feature-layer-overwrite-not-working-in-notebook/m-p/1585045#M63630</link>
    <description>&lt;P&gt;I am using a notebook to extract information from hosted feature services and combine it with API calls to yield a new dataset. I'd like this dataset to be published to a feature layer which then gets updated on a daily basis.&lt;/P&gt;&lt;P&gt;This dataset is in the form of a pandas data frame, which then gets converted to a spatial data frame and published as a feature layer using the following block of code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sdf = pd.DataFrame.spatial.from_xy(incident_predictions, x_column='longitude', y_column='latitude')

# Specify the title and tags for your feature service
title = "Incident Predictions"
tags = "dams, incidents"

# Publish the Spatially Enabled DataFrame
feature_layer = sdf.spatial.to_featurelayer(title=title, 
                                            tags=tags,
                                            gis=gis,
                                            folder='Dam Data + Code',
                                            overwrite=True,
                                            service= {'featureServiceId' : '850e4666b2934cf696f809bf5aeaf2c8', 'layer': 0})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a task that runs the notebook on a daily basis and gets the expected result, however, the overwrite feature is not working. I have inputted the correct feature service ID, but when I check the next day for the feature layer, I have one with an identical name but a different ID. Additionally, whenever this code is run, it creates a new geodatabase file, and I am unsure what part of my code is creating this geodatabase when I am only trying to publish a feature layer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated, I'd just want to have a feature layer updated every day using an automated task with new data from the API calls I make in the notebook.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2025 17:41:54 GMT</pubDate>
    <dc:creator>DrewLaird</dc:creator>
    <dc:date>2025-02-13T17:41:54Z</dc:date>
    <item>
      <title>Feature layer overwrite not working in notebook</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/feature-layer-overwrite-not-working-in-notebook/m-p/1585045#M63630</link>
      <description>&lt;P&gt;I am using a notebook to extract information from hosted feature services and combine it with API calls to yield a new dataset. I'd like this dataset to be published to a feature layer which then gets updated on a daily basis.&lt;/P&gt;&lt;P&gt;This dataset is in the form of a pandas data frame, which then gets converted to a spatial data frame and published as a feature layer using the following block of code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sdf = pd.DataFrame.spatial.from_xy(incident_predictions, x_column='longitude', y_column='latitude')

# Specify the title and tags for your feature service
title = "Incident Predictions"
tags = "dams, incidents"

# Publish the Spatially Enabled DataFrame
feature_layer = sdf.spatial.to_featurelayer(title=title, 
                                            tags=tags,
                                            gis=gis,
                                            folder='Dam Data + Code',
                                            overwrite=True,
                                            service= {'featureServiceId' : '850e4666b2934cf696f809bf5aeaf2c8', 'layer': 0})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a task that runs the notebook on a daily basis and gets the expected result, however, the overwrite feature is not working. I have inputted the correct feature service ID, but when I check the next day for the feature layer, I have one with an identical name but a different ID. Additionally, whenever this code is run, it creates a new geodatabase file, and I am unsure what part of my code is creating this geodatabase when I am only trying to publish a feature layer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated, I'd just want to have a feature layer updated every day using an automated task with new data from the API calls I make in the notebook.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 17:41:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/feature-layer-overwrite-not-working-in-notebook/m-p/1585045#M63630</guid>
      <dc:creator>DrewLaird</dc:creator>
      <dc:date>2025-02-13T17:41:54Z</dc:date>
    </item>
  </channel>
</rss>

