<?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: to_featurelayer() fails with overwrite option in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/to-featurelayer-fails-with-overwrite-option/m-p/1375236#M9591</link>
    <description>&lt;P&gt;I was able to get it to work. In the Dev API reference it states they are additional parameters.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;try something like this format:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sedf.spatial.to_featurelayer(title='abc', gis=gis, tags=None, folder=None, sanitize_columns=False, service_name=None, overwrite=True,service= {“featureServiceId” : “9311d21a9a2047d19c0faaebd6f2cca6”, “layer”: 0})&lt;/LI-CODE&gt;</description>
    <pubDate>Sun, 28 Jan 2024 19:36:36 GMT</pubDate>
    <dc:creator>RoderickPerendy</dc:creator>
    <dc:date>2024-01-28T19:36:36Z</dc:date>
    <item>
      <title>to_featurelayer() fails with overwrite option</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/to-featurelayer-fails-with-overwrite-option/m-p/1282381#M8632</link>
      <description>&lt;P&gt;The documentation for publishing a SEDF as a feature layer says it is possible to overwrite an existing layer with over=True and giving layer details as optional arguments.&lt;/P&gt;&lt;P&gt;Documentation reference: &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html?highlight=to_featurelayer#arcgis.features.GeoAccessor.to_featurelayer" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html?highlight=to_featurelayer#arcgis.features.GeoAccessor.to_featurelayer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I try&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sedf.spatial.to_featurelayer(overwrite=True, service={"featureServiceId" :  featureServiceId, "layer": 0}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get an error:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;TypeError: to_featurelayer() got an unexpected keyword argument 'overwrite'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I published the first version of the featurelayer using sedf.spatial.to_featurelayer(title="Title") - it worked&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 15:40:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/to-featurelayer-fails-with-overwrite-option/m-p/1282381#M8632</guid>
      <dc:creator>A_Schwab</dc:creator>
      <dc:date>2023-04-25T15:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: to_featurelayer() fails with overwrite option</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/to-featurelayer-fails-with-overwrite-option/m-p/1341835#M9202</link>
      <description>&lt;P&gt;Hello - I am having the same issue. Can someone from ESRI address this?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 08:41:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/to-featurelayer-fails-with-overwrite-option/m-p/1341835#M9202</guid>
      <dc:creator>HayesBuchanan</dc:creator>
      <dc:date>2023-10-26T08:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: to_featurelayer() fails with overwrite option</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/to-featurelayer-fails-with-overwrite-option/m-p/1375236#M9591</link>
      <description>&lt;P&gt;I was able to get it to work. In the Dev API reference it states they are additional parameters.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;try something like this format:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sedf.spatial.to_featurelayer(title='abc', gis=gis, tags=None, folder=None, sanitize_columns=False, service_name=None, overwrite=True,service= {“featureServiceId” : “9311d21a9a2047d19c0faaebd6f2cca6”, “layer”: 0})&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 28 Jan 2024 19:36:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/to-featurelayer-fails-with-overwrite-option/m-p/1375236#M9591</guid>
      <dc:creator>RoderickPerendy</dc:creator>
      <dc:date>2024-01-28T19:36:36Z</dc:date>
    </item>
  </channel>
</rss>

