<?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 updating item properties and giving warning in ArcGIS Notebooks Questions</title>
    <link>https://community.esri.com/t5/arcgis-notebooks-questions/feature-layer-overwrite-not-updating-item/m-p/1631196#M933</link>
    <description>&lt;P&gt;I am using a notebook in ArcGIS Online to overwrite a feature layer (with code excerpt below) and a couple things are not happening as expected:&lt;/P&gt;&lt;P&gt;1. &lt;STRONG&gt;None of the item properties are updating through the overwrite - is this expected?&lt;/STRONG&gt;&amp;nbsp;It did work the&amp;nbsp;first time when initially creating the feature layer via the same to_featurelayer method (and overwrite=False).&lt;/P&gt;&lt;LI-CODE lang="python"&gt;#define feature layer properties
item_properties = {"service_name" : "Sample Stations test", #this only gets added the first time service is published. Needs to be unique.
                   "title" : "Sample Title", 
                   "tags": "tagone, tagtwo",
                   "folder" : 'Script Outputs',
                  } #none of these are updating in overwrite

#publish sdf to feature layer 
lyr = sdf.spatial.to_featurelayer( 
    title=item_properties["title"], 
    gis=gis,
    tags=item_properties["tags"], 
    folder=item_properties["folder"],

    #only when creating feature layer:
    #service_name=item_properties["service_name"], 

    #only for overwrite:
    overwrite=True,
    service={"featureServiceId" : "ITEMID", "layer": 0})

item_id = lyr.id
url = lyr.url
print(f"Feature layer item {item_id} updated: ", url)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. The overwrite itself is working although I do get the following warning message. &lt;STRONG&gt;How can I avoid this warning? &lt;/STRONG&gt;And is it related to the item properties not updating?&lt;/P&gt;&lt;PRE&gt;Warning 6: dataset /tmp/tmp6a5ebhyr/ae9b78.gdb does not support layer creation option TARGET_ARCGIS_VERSION"&lt;/PRE&gt;&lt;P&gt;Would appreciate any suggestions! Thanks.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jul 2025 17:10:54 GMT</pubDate>
    <dc:creator>rwrenner_abtglobal</dc:creator>
    <dc:date>2025-07-08T17:10:54Z</dc:date>
    <item>
      <title>Feature layer overwrite not updating item properties and giving warning</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/feature-layer-overwrite-not-updating-item/m-p/1631196#M933</link>
      <description>&lt;P&gt;I am using a notebook in ArcGIS Online to overwrite a feature layer (with code excerpt below) and a couple things are not happening as expected:&lt;/P&gt;&lt;P&gt;1. &lt;STRONG&gt;None of the item properties are updating through the overwrite - is this expected?&lt;/STRONG&gt;&amp;nbsp;It did work the&amp;nbsp;first time when initially creating the feature layer via the same to_featurelayer method (and overwrite=False).&lt;/P&gt;&lt;LI-CODE lang="python"&gt;#define feature layer properties
item_properties = {"service_name" : "Sample Stations test", #this only gets added the first time service is published. Needs to be unique.
                   "title" : "Sample Title", 
                   "tags": "tagone, tagtwo",
                   "folder" : 'Script Outputs',
                  } #none of these are updating in overwrite

#publish sdf to feature layer 
lyr = sdf.spatial.to_featurelayer( 
    title=item_properties["title"], 
    gis=gis,
    tags=item_properties["tags"], 
    folder=item_properties["folder"],

    #only when creating feature layer:
    #service_name=item_properties["service_name"], 

    #only for overwrite:
    overwrite=True,
    service={"featureServiceId" : "ITEMID", "layer": 0})

item_id = lyr.id
url = lyr.url
print(f"Feature layer item {item_id} updated: ", url)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. The overwrite itself is working although I do get the following warning message. &lt;STRONG&gt;How can I avoid this warning? &lt;/STRONG&gt;And is it related to the item properties not updating?&lt;/P&gt;&lt;PRE&gt;Warning 6: dataset /tmp/tmp6a5ebhyr/ae9b78.gdb does not support layer creation option TARGET_ARCGIS_VERSION"&lt;/PRE&gt;&lt;P&gt;Would appreciate any suggestions! Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 17:10:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/feature-layer-overwrite-not-updating-item/m-p/1631196#M933</guid>
      <dc:creator>rwrenner_abtglobal</dc:creator>
      <dc:date>2025-07-08T17:10:54Z</dc:date>
    </item>
  </channel>
</rss>

