<?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: Overwrite Hosted Table in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-table/m-p/1126621#M6914</link>
    <description>&lt;P&gt;Discovered that my above lengthy process is only necessary because we were working with a hosted table joined to a spatial layer that was made into a hosted view. The view breaks the ability to use the simpler process described by&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/228958"&gt;@Kara_Shindle&lt;/a&gt;&amp;nbsp;in&amp;nbsp;&lt;A href="https://community.esri.com/t5/python-questions/overwrite-hosted-table-with-new-data/m-p/1106710#M62618" target="_blank"&gt;https://community.esri.com/t5/python-questions/overwrite-hosted-table-with-new-data/m-p/1106710#M62618&lt;/A&gt;&amp;nbsp;. That process works on a hosted layer that is a join of a hosted table and hosted spatial layer until you move to a view.&lt;/P&gt;&lt;PRE&gt;commRecTable = gis.content.get('{insert item ID here')&lt;BR /&gt;commRec_collection = FeatureLayerCollection.fromitem(commRecTable)&lt;BR /&gt;commRec_collection.manager.overwrite(commRecCSV)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Dec 2021 11:20:47 GMT</pubDate>
    <dc:creator>ConradSchaefer__DOIT_</dc:creator>
    <dc:date>2021-12-16T11:20:47Z</dc:date>
    <item>
      <title>Overwrite Hosted Table</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-table/m-p/871533#M4686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; I'm having trouble overwriting a hosted table using the python api in Jupyter Notebooks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've logged in to the organizational account in the script where I'm an administrator and here is the rest of the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;oldcsv = gis.content.get('ecc751eadabe43c083360c07bb7cghbc')&lt;/P&gt;&lt;P&gt;oldcsvFLC = FeatureLayerCollection.fromitem(oldcsv)&lt;/P&gt;&lt;P&gt;oldcsvFLC.manager.overwrite(r'C:\path\out4.csv')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the response below.&amp;nbsp; This test was done on 40 records but I eventually want to use a dataset with &amp;gt;100,000&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;Any guidance or suggestions would be most welcome.&amp;nbsp; I simply want to update the hosted table which would be joined to a feature class of admin boundaries.&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;Thanks&lt;/DIV&gt;&lt;DIV class=""&gt;Brian&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;---------------------------------------------------------------------------&lt;/SPAN&gt;&lt;SPAN class=""&gt;Exception&lt;/SPAN&gt;                                 Traceback (most recent call last)&lt;SPAN class=""&gt;&amp;lt;ipython-input-51-7974c8cc0fe0&amp;gt;&lt;/SPAN&gt; in &lt;SPAN class=""&gt;&amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;----&amp;gt; 1&lt;/SPAN&gt;&lt;SPAN class=""&gt; oldcsvFLC&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;manager&lt;SPAN class=""&gt;.&lt;/SPAN&gt;overwrite&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;r'C:\path\out4.csv'&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;~\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\lib\site-packages\arcgis\features\managers.py&lt;/SPAN&gt; in &lt;SPAN class=""&gt;overwrite&lt;/SPAN&gt;&lt;SPAN class=""&gt;(self, data_file)&lt;/SPAN&gt;&lt;SPAN class=""&gt;   1324&lt;/SPAN&gt;         &lt;SPAN class=""&gt;#region Perform overwriting&lt;/SPAN&gt;&lt;SPAN class=""&gt;   1325&lt;/SPAN&gt;         &lt;SPAN class=""&gt;if&lt;/SPAN&gt; related_data_item&lt;SPAN class=""&gt;.&lt;/SPAN&gt;update&lt;SPAN class=""&gt;(&lt;/SPAN&gt;item_properties&lt;SPAN class=""&gt;=&lt;/SPAN&gt;params&lt;SPAN class=""&gt;,&lt;/SPAN&gt; data&lt;SPAN class=""&gt;=&lt;/SPAN&gt;data_file&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;-&amp;gt; 1326&lt;/SPAN&gt;&lt;SPAN class=""&gt;             &lt;/SPAN&gt;published_item &lt;SPAN class=""&gt;=&lt;/SPAN&gt; related_data_item&lt;SPAN class=""&gt;.&lt;/SPAN&gt;publish&lt;SPAN class=""&gt;(&lt;/SPAN&gt;publish_parameters&lt;SPAN class=""&gt;,&lt;/SPAN&gt; overwrite&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;True&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;   1327&lt;/SPAN&gt;             &lt;SPAN class=""&gt;if&lt;/SPAN&gt; published_item &lt;SPAN class=""&gt;is&lt;/SPAN&gt; &lt;SPAN class=""&gt;not&lt;/SPAN&gt; &lt;SPAN class=""&gt;None&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;   1328&lt;/SPAN&gt;                 &lt;SPAN class=""&gt;return&lt;/SPAN&gt; &lt;SPAN class=""&gt;{&lt;/SPAN&gt;&lt;SPAN class=""&gt;'success'&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;True&lt;/SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;SPAN class=""&gt;~\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\lib\site-packages\arcgis\gis\__init__.py&lt;/SPAN&gt; in &lt;SPAN class=""&gt;publish&lt;/SPAN&gt;&lt;SPAN class=""&gt;(self, publish_parameters, address_fields, output_type, overwrite, file_type, build_initial_cache)&lt;/SPAN&gt;&lt;SPAN class=""&gt;   9030&lt;/SPAN&gt;             &lt;SPAN class=""&gt;return&lt;/SPAN&gt; Item&lt;SPAN class=""&gt;(&lt;/SPAN&gt;self&lt;SPAN class=""&gt;.&lt;/SPAN&gt;_gis&lt;SPAN class=""&gt;,&lt;/SPAN&gt; ret&lt;SPAN class=""&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;SPAN class=""&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;'serviceItemId'&lt;/SPAN&gt;&lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;   9031&lt;/SPAN&gt;         &lt;SPAN class=""&gt;else&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;-&amp;gt; 9032&lt;/SPAN&gt;&lt;SPAN class=""&gt;             &lt;/SPAN&gt;serviceitem_id &lt;SPAN class=""&gt;=&lt;/SPAN&gt; self&lt;SPAN class=""&gt;.&lt;/SPAN&gt;_check_publish_status&lt;SPAN class=""&gt;(&lt;/SPAN&gt;ret&lt;SPAN class=""&gt;,&lt;/SPAN&gt; folder&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;   9033&lt;/SPAN&gt;         &lt;SPAN class=""&gt;return&lt;/SPAN&gt; Item&lt;SPAN class=""&gt;(&lt;/SPAN&gt;self&lt;SPAN class=""&gt;.&lt;/SPAN&gt;_gis&lt;SPAN class=""&gt;,&lt;/SPAN&gt; serviceitem_id&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;   9034&lt;/SPAN&gt;  &lt;SPAN class=""&gt;~\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\lib\site-packages\arcgis\gis\__init__.py&lt;/SPAN&gt; in &lt;SPAN class=""&gt;_check_publish_status&lt;/SPAN&gt;&lt;SPAN class=""&gt;(self, ret, folder)&lt;/SPAN&gt;&lt;SPAN class=""&gt;   9257&lt;/SPAN&gt;                     &lt;SPAN class=""&gt;#print(str(job_response))&lt;/SPAN&gt;&lt;SPAN class=""&gt;   9258&lt;/SPAN&gt;                     &lt;SPAN class=""&gt;if&lt;/SPAN&gt; job_response&lt;SPAN class=""&gt;.&lt;/SPAN&gt;get&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"status"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt; &lt;SPAN class=""&gt;in&lt;/SPAN&gt; &lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"esriJobFailed"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt;"failed"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;-&amp;gt; 9259&lt;/SPAN&gt;&lt;SPAN class=""&gt;                         &lt;/SPAN&gt;&lt;SPAN class=""&gt;raise&lt;/SPAN&gt; Exception&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"Job failed."&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;   9260&lt;/SPAN&gt;                     &lt;SPAN class=""&gt;elif&lt;/SPAN&gt; job_response&lt;SPAN class=""&gt;.&lt;/SPAN&gt;get&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"status"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt; &lt;SPAN class=""&gt;==&lt;/SPAN&gt; &lt;SPAN class=""&gt;"esriJobCancelled"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;   9261&lt;/SPAN&gt;                         &lt;SPAN class=""&gt;raise&lt;/SPAN&gt; Exception&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"Job cancelled."&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;Exception&lt;/SPAN&gt;: Job failed. &lt;/PRE&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2020 13:43:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-table/m-p/871533#M4686</guid>
      <dc:creator>BrianKaplan</dc:creator>
      <dc:date>2020-04-01T13:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Hosted Table</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-table/m-p/871534#M4687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a solution.&amp;nbsp; If you add the csv file to AGOL without publishing it then publish it (in my case as a table without geocoding), the overwrite method works (oldcsvFLC.manager.overwrite(r'C:\path\out4.csv').&amp;nbsp;&amp;nbsp;&amp;nbsp; It is when I publish the table from ArcGIS Pro (presumably ArcMap too) that the overwrite method doesn't work.&amp;nbsp; I suspect it has something to do with a service definition file which I do not see if I publish from within AGOL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2020 14:09:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-table/m-p/871534#M4687</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-04-02T14:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Hosted Table</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-table/m-p/1028169#M5583</link>
      <description>&lt;P&gt;Brian,&lt;/P&gt;&lt;P&gt;Encountering the same issue as you: Job Failed. But not finding your solution to be a fix.&lt;/P&gt;&lt;P&gt;I never published from ArcPro but encountered the issue. I uploaded a non-spatial csv to ArcGIS Online. Then published it as a hosted table in a separate step. I wanted to update the data in that hosted table.&lt;/P&gt;&lt;P&gt;The FeatureLayerCollection.manager.overwrite method is resulting in failed job. I ensure the file name was identical to the one originally used (which is a very strange requirement). The file schema is identical to original since the same process generated the original and my update file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can do so with the arcgis.features.Table delete and add features methods. But, there is a note that if you are working with more than 250 features the append method should be used. Problem is the append method is not working and seems to be a sticking point for many. Was examining this as an alternative.&lt;/P&gt;&lt;P&gt;just adding this info in case someone else comes along with same issue.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 18:18:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-table/m-p/1028169#M5583</guid>
      <dc:creator>ConradSchaefer__DOIT_</dc:creator>
      <dc:date>2021-02-18T18:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Hosted Table</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-table/m-p/1061864#M6125</link>
      <description>&lt;P&gt;Replying to a deleted post that was reposted over at&amp;nbsp;&lt;A href="https://community.esri.com/t5/python-questions/overwrite-hosted-table-with-new-data/m-p/1060818" target="_blank"&gt;https://community.esri.com/t5/python-questions/overwrite-hosted-table-with-new-data/m-p/1060818&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the flow for a process we have automated. The blue portion is the programmatic portion.&lt;/P&gt;&lt;P&gt;This was developed after encountering issues with the .overwrite() method. See my earlier reply, though I hadn't gotten the append method to work at that time. Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Power Outage Application - Cloud Model - Process Flow clipped for agol answer.png" style="width: 942px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/14207i38494055553A4BE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Power Outage Application - Cloud Model - Process Flow clipped for agol answer.png" alt="Power Outage Application - Cloud Model - Process Flow clipped for agol answer.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The programmatic portion of the process goes as follows:&lt;/P&gt;&lt;P&gt;Create a connection object: gis_connection =&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;arcgis.gis.GIS(your info)&lt;/PRE&gt;&lt;P&gt;Then get csv item by id:&lt;/P&gt;&lt;PRE&gt;gis_connection.content.get(&lt;SPAN&gt;itemid&lt;/SPAN&gt;=item_id)&lt;/PRE&gt;&lt;P&gt;Update the csv item using a local file (because the process requires a path):&lt;/P&gt;&lt;PRE&gt;csv_item.update(&lt;SPAN&gt;data&lt;/SPAN&gt;=temp_csv_path)&lt;/PRE&gt;&lt;P&gt;Get the hosted table item by id:&lt;/P&gt;&lt;PRE&gt;gis_connection.content.get(&lt;SPAN&gt;itemid&lt;/SPAN&gt;=item_id)&lt;/PRE&gt;&lt;P&gt;Create a feature table item:&lt;/P&gt;&lt;PRE&gt;arcgis.features.Table.fromitem(hosted_table_item)&lt;/PRE&gt;&lt;P&gt;Analyze the item:&lt;/P&gt;&lt;PRE&gt;gis_connection.content.analyze(&lt;SPAN&gt;item&lt;/SPAN&gt;=csv_item.id)&lt;/PRE&gt;&lt;P&gt;Delete the existing features:&lt;/P&gt;&lt;PRE&gt;features_table.delete_features(&lt;SPAN&gt;where&lt;/SPAN&gt;=&lt;SPAN&gt;"1=1"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;return_delete_results&lt;/SPAN&gt;=&lt;SPAN&gt;True&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;Append the new data:&lt;/P&gt;&lt;PRE&gt;attempt_ceiling = &lt;SPAN&gt;3&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;for &lt;/SPAN&gt;i &lt;SPAN&gt;in &lt;/SPAN&gt;&lt;SPAN&gt;range&lt;/SPAN&gt;(&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;attempt_ceiling):&lt;BR /&gt;    &lt;SPAN&gt;try&lt;/SPAN&gt;:&lt;BR /&gt;        append_result = &lt;SPAN&gt;self&lt;/SPAN&gt;.features_table.append(&lt;BR /&gt;            &lt;SPAN&gt;item_id&lt;/SPAN&gt;=&lt;SPAN&gt;self&lt;/SPAN&gt;.csv_item.id&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;upload_format&lt;/SPAN&gt;=&lt;SPAN&gt;'csv'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;source_info&lt;/SPAN&gt;=&lt;SPAN&gt;self&lt;/SPAN&gt;.analyze_result&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;upsert&lt;/SPAN&gt;=&lt;SPAN&gt;False,&lt;BR /&gt;&lt;/SPAN&gt;        )&lt;BR /&gt;    &lt;SPAN&gt;except &lt;/SPAN&gt;&lt;SPAN&gt;Exception &lt;/SPAN&gt;&lt;SPAN&gt;as &lt;/SPAN&gt;e:&lt;BR /&gt;&lt;BR /&gt;        &lt;SPAN&gt;# Esri exception is generic so there is no specific type to look for.&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;f"ATTEMPT &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;i + &lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt; OF &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;attempt_ceiling&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt; FAILED. Exception in ESRI arcgis.features.Table.append()&lt;/SPAN&gt;&lt;SPAN&gt;\n{&lt;/SPAN&gt;e&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;)&lt;BR /&gt;        time.sleep(&lt;SPAN&gt;2&lt;/SPAN&gt;)&lt;BR /&gt;        &lt;SPAN&gt;continue&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    else&lt;/SPAN&gt;:&lt;BR /&gt;        &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;f"Append Result: &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;append_result&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;)&lt;BR /&gt;        &lt;SPAN&gt;break&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;NOTE on the Append portion:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Esri update of an existing hosted feature layer using append functionality&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;NOTE:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    The append function periodically throws an exception, and the ESRI code is not specific and is just&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    a type Exception. Was occurring 1-3 times per day out of 97 runs. Added a loop with sleep to introduce a&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    small amount of wait before retrying the append. Features in existing hosted table have been deleted prior&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    to the appending of new records so important to not fail out and leave an empty table in cloud.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 16:05:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-table/m-p/1061864#M6125</guid>
      <dc:creator>ConradSchaefer__DOIT_</dc:creator>
      <dc:date>2021-05-26T16:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Hosted Table</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-table/m-p/1126621#M6914</link>
      <description>&lt;P&gt;Discovered that my above lengthy process is only necessary because we were working with a hosted table joined to a spatial layer that was made into a hosted view. The view breaks the ability to use the simpler process described by&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/228958"&gt;@Kara_Shindle&lt;/a&gt;&amp;nbsp;in&amp;nbsp;&lt;A href="https://community.esri.com/t5/python-questions/overwrite-hosted-table-with-new-data/m-p/1106710#M62618" target="_blank"&gt;https://community.esri.com/t5/python-questions/overwrite-hosted-table-with-new-data/m-p/1106710#M62618&lt;/A&gt;&amp;nbsp;. That process works on a hosted layer that is a join of a hosted table and hosted spatial layer until you move to a view.&lt;/P&gt;&lt;PRE&gt;commRecTable = gis.content.get('{insert item ID here')&lt;BR /&gt;commRec_collection = FeatureLayerCollection.fromitem(commRecTable)&lt;BR /&gt;commRec_collection.manager.overwrite(commRecCSV)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 11:20:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/overwrite-hosted-table/m-p/1126621#M6914</guid>
      <dc:creator>ConradSchaefer__DOIT_</dc:creator>
      <dc:date>2021-12-16T11:20:47Z</dc:date>
    </item>
  </channel>
</rss>

