<?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 Arcpy to overwrite layers in AGOL in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-to-overwrite-layers-in-agol/m-p/1247812#M66525</link>
    <description>&lt;P&gt;I had originally posted a group layer from Pro (in an sde) to AGOL&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - I guess my first question is can I overwrite that group layer or do I need to create 11 separate hosted feature layers?&lt;/P&gt;&lt;P&gt;I am trying to write a code that will automatically update these layers in AGOL. I haven't used code before this, so every time I read a document I get a but more puzzled. Wondering if anyone could help me out with these errors? How/where do I need to connect to the server?&lt;/P&gt;&lt;P&gt;I am following:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/featuresharingdraft-class.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/featuresharingdraft-class.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LauraMott_3-1673556122955.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60320i889C030114AF00C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="LauraMott_3-1673556122955.png" alt="LauraMott_3-1673556122955.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;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LauraMott_1-1673556078815.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60317i6E2EFD77BD14D9C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="LauraMott_1-1673556078815.png" alt="LauraMott_1-1673556078815.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2023 20:43:45 GMT</pubDate>
    <dc:creator>Laura</dc:creator>
    <dc:date>2023-01-12T20:43:45Z</dc:date>
    <item>
      <title>Arcpy to overwrite layers in AGOL</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-to-overwrite-layers-in-agol/m-p/1247812#M66525</link>
      <description>&lt;P&gt;I had originally posted a group layer from Pro (in an sde) to AGOL&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - I guess my first question is can I overwrite that group layer or do I need to create 11 separate hosted feature layers?&lt;/P&gt;&lt;P&gt;I am trying to write a code that will automatically update these layers in AGOL. I haven't used code before this, so every time I read a document I get a but more puzzled. Wondering if anyone could help me out with these errors? How/where do I need to connect to the server?&lt;/P&gt;&lt;P&gt;I am following:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/featuresharingdraft-class.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/featuresharingdraft-class.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LauraMott_3-1673556122955.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60320i889C030114AF00C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="LauraMott_3-1673556122955.png" alt="LauraMott_3-1673556122955.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;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LauraMott_1-1673556078815.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60317i6E2EFD77BD14D9C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="LauraMott_1-1673556078815.png" alt="LauraMott_1-1673556078815.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 20:43:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-to-overwrite-layers-in-agol/m-p/1247812#M66525</guid>
      <dc:creator>Laura</dc:creator>
      <dc:date>2023-01-12T20:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy to overwrite layers in AGOL</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-to-overwrite-layers-in-agol/m-p/1247912#M66529</link>
      <description>&lt;P&gt;Have you thought about a truncate and append process instead of an overwrite.&lt;/P&gt;&lt;P&gt;Check out sample in this thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/td-p/1245305" target="_blank"&gt;Hosted Feature Layer View Does Not Update When Ove... - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The helpful code was generously shared by Josh Carlson and is about half way down the thread.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 00:02:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-to-overwrite-layers-in-agol/m-p/1247912#M66529</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2023-01-13T00:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy to overwrite layers in AGOL</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-to-overwrite-layers-in-agol/m-p/1248046#M66534</link>
      <description>&lt;P&gt;Thanks, I'll give it a try!&lt;/P&gt;&lt;P&gt;&amp;nbsp;In terms of the geoaccessor.from_featureclass (path) --&amp;gt; would I have to do this for each layer individually and split my utilities group layer up or can I just use a comma to separate a path to the 11 different utilities under my utility layer in my map?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 14:43:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-to-overwrite-layers-in-agol/m-p/1248046#M66534</guid>
      <dc:creator>Laura</dc:creator>
      <dc:date>2023-01-13T14:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy to overwrite layers in AGOL</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-to-overwrite-layers-in-agol/m-p/1248050#M66535</link>
      <description>&lt;P&gt;I do not know the answer to that question as I was just going to use this code to update individual feature services and not grouped items.&amp;nbsp; You can try testing to see how it goes and possibly ask this question on the thread I mentioned for the individual who posted the code.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 14:49:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-to-overwrite-layers-in-agol/m-p/1248050#M66535</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2023-01-13T14:49:26Z</dc:date>
    </item>
  </channel>
</rss>

