<?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: Error when overwriting feature layer in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-overwriting-feature-layer/m-p/1332122#M9047</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/86730"&gt;@ErikaJimenez_Rivera1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Here is a workaround you can try until the issue is resolved. You will have to manually complete this workflow (could do it weekly, biweekly, etc), however it solves the problem that you are experiencing.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;STRONG&gt;Workaround:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Use ArcGIS Online Assistant to remove sublayers from feature layer. NOTE: ArcGIS Online Assistant is not supported by Esri Technical Support.&lt;/P&gt;&lt;P&gt;1. Navigate to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://assistant.esri-ps.com/" target="_blank" rel="noopener nofollow noreferrer"&gt;assistant.esri-ps.com&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and Log In.&lt;/P&gt;&lt;P&gt;2. Under "My Content", find the target feature layer and click it. Click "View Item JSON".&lt;/P&gt;&lt;P&gt;3. Click on the "Data Tab". Click "Edit JSON".&lt;/P&gt;&lt;P&gt;4. Delete the duplicate json data. Be sure to keep the original ("id": 0). Deleting it all will break the layer and any dependent apps.&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 25 Sep 2023 19:16:26 GMT</pubDate>
    <dc:creator>ryan_grammer</dc:creator>
    <dc:date>2023-09-25T19:16:26Z</dc:date>
    <item>
      <title>Error when overwriting feature layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-overwriting-feature-layer/m-p/1127471#M6922</link>
      <description>&lt;P&gt;According to the documentation, there is a paramater (context) in the tool arcgis.features.analysis.join_features. In&amp;nbsp; this parameter, there is an option to overwrite an existing feature layer.&lt;/P&gt;&lt;P&gt;It is a dictionary, and I am writing it like that. However, I still get an error, saying the name already exist. Which I thought would be solved by enabling the overwrite.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I writing it wrong? or is there a mistake in my code?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ErikaJimenez_Rivera1_0-1639939938846.png" style="width: 719px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30004i2418C8CBB4B20AE4/image-dimensions/719x173?v=v2" width="719" height="173" role="button" title="ErikaJimenez_Rivera1_0-1639939938846.png" alt="ErikaJimenez_Rivera1_0-1639939938846.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Update:&lt;/P&gt;&lt;P&gt;So, I realized that maybe I needed to call the layer to be overwritten per se. which I just did at the beggining of the code.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ErikaJimenez_Rivera1_0-1639950353862.png" style="width: 600px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30007i49EF954C245062C2/image-dimensions/600x240?v=v2" width="600" height="240" role="button" title="ErikaJimenez_Rivera1_0-1639950353862.png" alt="ErikaJimenez_Rivera1_0-1639950353862.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ErikaJimenez_Rivera1_1-1639950443324.png" style="width: 531px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30008i6B8E188BD01464DD/image-dimensions/531x221?v=v2" width="531" height="221" role="button" title="ErikaJimenez_Rivera1_1-1639950443324.png" alt="ErikaJimenez_Rivera1_1-1639950443324.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And it finally works! The error does not appear anymore.&lt;/P&gt;&lt;P&gt;HOWEVER, when reviewing the feature layer I notice that it is adding more layers instead of overwriting the existing layer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ErikaJimenez_Rivera1_2-1639950504071.png" style="width: 529px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30009i396BFE9FA4280742/image-dimensions/529x430?v=v2" width="529" height="430" role="button" title="ErikaJimenez_Rivera1_2-1639950504071.png" alt="ErikaJimenez_Rivera1_2-1639950504071.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This service is going to be updated regularly, so I don´t want to accumulate layers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, that was the update. Any suggestions or recommendations are more than welcome!&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Dec 2021 21:50:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-overwriting-feature-layer/m-p/1127471#M6922</guid>
      <dc:creator>ErikaJimenez_Rivera1</dc:creator>
      <dc:date>2021-12-19T21:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error when overwriting feature layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-overwriting-feature-layer/m-p/1240574#M8160</link>
      <description>&lt;P&gt;Hi, did you find solution? I have the same problem.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 13:55:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-overwriting-feature-layer/m-p/1240574#M8160</guid>
      <dc:creator>JiříKomínek</dc:creator>
      <dc:date>2022-12-13T13:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error when overwriting feature layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-overwriting-feature-layer/m-p/1332122#M9047</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/86730"&gt;@ErikaJimenez_Rivera1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Here is a workaround you can try until the issue is resolved. You will have to manually complete this workflow (could do it weekly, biweekly, etc), however it solves the problem that you are experiencing.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;STRONG&gt;Workaround:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Use ArcGIS Online Assistant to remove sublayers from feature layer. NOTE: ArcGIS Online Assistant is not supported by Esri Technical Support.&lt;/P&gt;&lt;P&gt;1. Navigate to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://assistant.esri-ps.com/" target="_blank" rel="noopener nofollow noreferrer"&gt;assistant.esri-ps.com&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and Log In.&lt;/P&gt;&lt;P&gt;2. Under "My Content", find the target feature layer and click it. Click "View Item JSON".&lt;/P&gt;&lt;P&gt;3. Click on the "Data Tab". Click "Edit JSON".&lt;/P&gt;&lt;P&gt;4. Delete the duplicate json data. Be sure to keep the original ("id": 0). Deleting it all will break the layer and any dependent apps.&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 25 Sep 2023 19:16:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-overwriting-feature-layer/m-p/1332122#M9047</guid>
      <dc:creator>ryan_grammer</dc:creator>
      <dc:date>2023-09-25T19:16:26Z</dc:date>
    </item>
  </channel>
</rss>

