<?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: Getting AttributeError when trying to overwrite feature layer in ArcGIS Online using API for Python in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-attributeerror-when-trying-to-overwrite/m-p/1206839#M7680</link>
    <description>&lt;P&gt;In a Jupyter Notebook, looking at the .manager.properties.layers I can see there is a table item, which you would think would be in the .manager.properties.tables instead. Anyway, if you alter the&amp;nbsp;@property tables function to use self.properties.layers (like the @properties layers function)instead of self.properties.tables then you make it through the issue. BUT I exited and did not let it go further because I didn't want this to alter a production asset and take a bad turn.&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="foragolissue.JPG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49578i7AAF15516A6FD5F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="foragolissue.JPG" alt="foragolissue.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is a screenshot of the ESRI code altered as described above...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ConradSchaefer__DOIT__1-1661535473401.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49579i241E2D8F21A63615/image-size/large?v=v2&amp;amp;px=999" role="button" title="ConradSchaefer__DOIT__1-1661535473401.png" alt="ConradSchaefer__DOIT__1-1661535473401.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 26 Aug 2022 17:38:27 GMT</pubDate>
    <dc:creator>ConradSchaefer__DOIT_</dc:creator>
    <dc:date>2022-08-26T17:38:27Z</dc:date>
    <item>
      <title>Getting AttributeError when trying to overwrite feature layer in ArcGIS Online using API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-attributeerror-when-trying-to-overwrite/m-p/1171734#M7378</link>
      <description>&lt;P&gt;I'm trying to overwrite a hosted feature layer in AGOL using the method outlined here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/sample-notebooks/overwriting-feature-layers/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/sample-notebooks/overwriting-feature-layers/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but when I run&lt;/P&gt;&lt;PRE&gt;data_flayer.manager.overwrite('data.csv')&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I get&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;AttributeError: 'PropertyMap' instance has no attribute 'tables'&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I get the same error when I try to update just the csv item that the feature layer is published from:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;data_item.update({}, 'data.csv')&lt;BR /&gt;data&lt;SPAN&gt;.publish(&lt;/SPAN&gt;&lt;SPAN&gt;overwrite&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I get the same error when I attempt to overwrite two different ways- thoughts?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 09 May 2022 17:33:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-attributeerror-when-trying-to-overwrite/m-p/1171734#M7378</guid>
      <dc:creator>Arlo</dc:creator>
      <dc:date>2022-05-09T17:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Getting AttributeError when trying to overwrite feature layer in ArcGIS Online using API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-attributeerror-when-trying-to-overwrite/m-p/1171744#M7379</link>
      <description>&lt;P&gt;data.csv isn't a featurelayer but probably a table used to create a point layer.&amp;nbsp; a csv isn't a "layer" unless it is used to make one,&lt;/P&gt;</description>
      <pubDate>Sat, 07 May 2022 02:12:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-attributeerror-when-trying-to-overwrite/m-p/1171744#M7379</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-05-07T02:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Getting AttributeError when trying to overwrite feature layer in ArcGIS Online using API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-attributeerror-when-trying-to-overwrite/m-p/1172090#M7380</link>
      <description>&lt;P&gt;Thanks for the reply. According to the &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.managers.html?highlight=featurelayercollectionmanager#arcgis.features.managers.FeatureLayerCollectionManager.overwrite" target="_self"&gt;documentation&lt;/A&gt;&amp;nbsp;and the example in this &lt;A href="https://developers.arcgis.com/python/sample-notebooks/overwriting-feature-layers/" target="_self"&gt;sample notebook&lt;/A&gt;, the overwrite function takes a local data file (csv in this case) as it's only argument. The data_flayer object that I'm attempting to overwrite is a feature layer accessed from the GIS:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;data_item&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;gis&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;content&lt;/SPAN&gt;&lt;SPAN&gt;.search(&lt;/SPAN&gt;&lt;SPAN&gt;"title: Title owner:Owner"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;item_type&lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;"Feature Layer"&lt;/SPAN&gt;&lt;SPAN&gt;)[&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;data_flayer&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;FeatureLayerCollection&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;fromitem&lt;/SPAN&gt;&lt;SPAN&gt;(data&lt;/SPAN&gt;&lt;SPAN&gt;_item&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;data_flayer&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;manager&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;overwrite&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'data.csv'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&lt;SPAN&gt;I get the same AttributeError when I try to overwrite just the csv file:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;csv_item&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;gis&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;content&lt;/SPAN&gt;&lt;SPAN&gt;.search(&lt;/SPAN&gt;&lt;SPAN&gt;"title:Title owner:Owner"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;item_type&lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;"CSV"&lt;/SPAN&gt;&lt;SPAN&gt;)[&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;csv_item&lt;/SPAN&gt;&lt;SPAN&gt;.update({}, &lt;/SPAN&gt;&lt;SPAN&gt;'data.csv'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;csv_item&lt;/SPAN&gt;&lt;SPAN&gt;.publish(&lt;/SPAN&gt;&lt;SPAN&gt;overwrite&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks for any additional insight!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 09 May 2022 18:53:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-attributeerror-when-trying-to-overwrite/m-p/1172090#M7380</guid>
      <dc:creator>Arlo</dc:creator>
      <dc:date>2022-05-09T18:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Getting AttributeError when trying to overwrite feature layer in ArcGIS Online using API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-attributeerror-when-trying-to-overwrite/m-p/1178993#M7441</link>
      <description>&lt;P&gt;I don't have a solution but just responding to say that I am having this issue as well.&amp;nbsp; I have a script that I wrote last year that uses the same methods that you linked in your post and the overwrite portion is now producing an error.&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Get a reference to the feature layer
pw_customers = gis.content.get(items[0].itemid)
customers_collection = arcgis.features.FeatureLayerCollection.fromitem(pw_customers)
        
# Overwrite the feature layer with the new / updated data
csv_for_upload = os.path.join(os.path.split(contact_csv)[0], featurelayer_title + ".csv")
pw_customers_collection.manager.overwrite(data_file=csv_for_upload)
print("Feature layer overwritten")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;PYTHON ERRORS:
Traceback info:
  File "c:/Users/Administrator/Desktop/python/sf_customer_to_ago.py", line 250, in &amp;lt;module&amp;gt;
    pw_customers_collection.manager.overwrite(data_file=csv_for_upload)

Error Info:
'PropertyMap' instance has no attribute 'tables'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 14:56:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-attributeerror-when-trying-to-overwrite/m-p/1178993#M7441</guid>
      <dc:creator>tmichael81</dc:creator>
      <dc:date>2022-06-01T14:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting AttributeError when trying to overwrite feature layer in ArcGIS Online using API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-attributeerror-when-trying-to-overwrite/m-p/1206797#M7678</link>
      <description>&lt;P&gt;We too are now having an issue. Not sure when it began, our process was silently failing and log file repository only goes back a few weeks. I know that it once worked and something has changed.&lt;/P&gt;&lt;P&gt;We are overwriting a hosted table from a csv using the ArcGIS API for Python. Version 2.0.0 as of now&lt;/P&gt;&lt;P&gt;Here is our traceback with some paths obscured with XXX's and ZZZ's&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Traceback (most recent call last):
File "XXXXXXX", line 305, in &amp;lt;module&amp;gt;
main()
File "XXXXXXX", line 296, in main
result = data_collection.manager.overwrite(output_csv_path) # Expects csv named same as csv_name variable
File "ZZZZZZZ\Python37\lib\site-packages\arcgis\features\managers.py", line 2326, in overwrite
for table in self.tables:
File "ZZZZZZZ\Python37\lib\site-packages\arcgis\features\managers.py", line 1514, in tables
for table in self.properties.tables:
File "ZZZZZZZ\Python37\lib\site-packages\arcgis\_impl\common\_mixins.py", line 84, in __getattr__
cls=self.__class__.__name__, name=key
AttributeError: 'PropertyMap' instance has no attribute 'tables'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our code from which this error arises is below. The overwrite() step is where the failure occurs.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;hosted_table_item = gis.content.get(itemid=config_parser["AGOL"]["hosted_table_item_id"])
data_collection = arcgis.features.FeatureLayerCollection.fromitem(hosted_table_item)
result = data_collection.manager.overwrite(output_csv_path)  # Expects csv named same as csv_name variable&lt;/LI-CODE&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/149008"&gt;@SusanHmel__DOIT_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 16:20:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-attributeerror-when-trying-to-overwrite/m-p/1206797#M7678</guid>
      <dc:creator>ConradSchaefer__DOIT_</dc:creator>
      <dc:date>2022-08-26T16:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Getting AttributeError when trying to overwrite feature layer in ArcGIS Online using API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-attributeerror-when-trying-to-overwrite/m-p/1206830#M7679</link>
      <description>&lt;P&gt;Looking at it further, it seems under the hood that the "tables" key doesn't exist in the collection properties but is expected to be there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ConradSchaefer__DOIT__0-1661534405546.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49577iE64B91F60824B2D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="ConradSchaefer__DOIT__0-1661534405546.png" alt="ConradSchaefer__DOIT__0-1661534405546.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, for the property just above for layers, the self.properties does have a 'layers' key.&lt;/P&gt;&lt;P&gt;Here is the print out from the keys() call. You will see "layers" as the last key but there is no "tables" key. I think that is either the AGOL side missing a "tables" key or the code not accomodating/adding it??&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;dict_keys(['adminServiceInfo', 'enforceFieldVisibility', 'currentVersion', 'serviceItemId', 'serviceDescription', 'hasVersionedData', 'supportsDisconnectedEditing', 'hasStaticData', 'hasSharedDomains', 'maxRecordCount', 'supportedQueryFormats', 'supportsVCSProjection', 'supportedExportFormats', 'capabilities', 'description', 'copyrightText', 'initialExtent', 'fullExtent', 'allowGeometryUpdates', 'units', 'supportsAppend', 'supportsSharedDomains', 'supportsWebHooks', 'supportsTemporalLayers', 'layerOverridesEnabled', 'size', 'syncEnabled', 'supportsApplyEditsWithGlobalIds', 'supportsReturnDeleteResults', 'supportsLayerOverrides', 'supportsTilesAndBasicQueriesMode', 'supportsQueryContingentValues', 'supportedContingentValuesFormats', 'supportsContingentValuesJson', 'advancedEditingCapabilities', 'editorTrackingInfo', 'xssPreventionInfo', 'layers'])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/149008"&gt;@SusanHmel__DOIT_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 17:25:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-attributeerror-when-trying-to-overwrite/m-p/1206830#M7679</guid>
      <dc:creator>ConradSchaefer__DOIT_</dc:creator>
      <dc:date>2022-08-26T17:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Getting AttributeError when trying to overwrite feature layer in ArcGIS Online using API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-attributeerror-when-trying-to-overwrite/m-p/1206839#M7680</link>
      <description>&lt;P&gt;In a Jupyter Notebook, looking at the .manager.properties.layers I can see there is a table item, which you would think would be in the .manager.properties.tables instead. Anyway, if you alter the&amp;nbsp;@property tables function to use self.properties.layers (like the @properties layers function)instead of self.properties.tables then you make it through the issue. BUT I exited and did not let it go further because I didn't want this to alter a production asset and take a bad turn.&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="foragolissue.JPG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49578i7AAF15516A6FD5F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="foragolissue.JPG" alt="foragolissue.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is a screenshot of the ESRI code altered as described above...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ConradSchaefer__DOIT__1-1661535473401.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49579i241E2D8F21A63615/image-size/large?v=v2&amp;amp;px=999" role="button" title="ConradSchaefer__DOIT__1-1661535473401.png" alt="ConradSchaefer__DOIT__1-1661535473401.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 17:38:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-attributeerror-when-trying-to-overwrite/m-p/1206839#M7680</guid>
      <dc:creator>ConradSchaefer__DOIT_</dc:creator>
      <dc:date>2022-08-26T17:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting AttributeError when trying to overwrite feature layer in ArcGIS Online using API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-attributeerror-when-trying-to-overwrite/m-p/1206882#M7682</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Me and &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/422385"&gt;@tmichael81&lt;/a&gt;&amp;nbsp;had this issue initially and something I put together at the time before 2.0.1 was released was the following:&lt;/P&gt;&lt;P&gt;You can ignore lines 1-12. I only included them to show how the data was structured. I also spent time digging in the arcgis api for python module and it seemed empty handed at the time.&lt;/P&gt;&lt;P&gt;The code below recreates the overwrite by just simple breaking off the rows to be appended by chunks depending on the size of your data using&amp;nbsp; the numpy module&lt;STRONG&gt;(Line 15)&lt;/STRONG&gt;. Then, deleting the features on the layer&lt;EM&gt;(this can done on a collection by iterating through the multiple layers) &lt;/EM&gt;and truncating the table to reset everything&lt;STRONG&gt;(Line 23-24)&lt;/STRONG&gt;. I use edit_features here&lt;STRONG&gt;(Line 26)&lt;/STRONG&gt;, and you could argue that append would be more appropriate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;                # If latitude and longitude are avaliable then make the geometry point for the feature
                if(x and y):
                    geometryPoint = Point({"x": x, "y": y, "spatialReference" : {"wkid" : 4326}}) # Create Geometry
                if(geometryPoint):
                    rows.append(Feature(attributes=newRow, geometry=geometryPoint))
                else:
                    rows.append(Feature(attributes=newRow))

                # Reset geometry variables
                x = None
                y = None
                geometryPoint = None

        # Break the rows into chunks so they can be uploaded to AGOL without issues.
        dataSets = np.array_split(rows, round(len(rows) / 100))

        # Get a reference to the feature layer
        customers = gis.content.get(items[0].itemid)
        customers_fl = pathwise_customers.layers[0]
        # customers_collection = arcgis.features.FeatureLayerCollection.fromitem(customers)
        
        # Overwrite the feature layer with the new / updated data
        customers_fl.delete_features(where="objectid &amp;gt; 0")
        customers_fl.manager.truncate()
        for dataSet in dataSets:
            customers_fl.edit_features(adds=dataSet[0:dataSet.size], rollback_on_failure=False)

        # customers_collection.manager.overwrite(data_file=csv_for_upload)
        print("Feature layer overwritten")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, supposedly ArcGIS API for Python 2.0.1 module fixes this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/guide/release-notes-201/" target="_self"&gt;https://developers.arcgis.com/python/guide/release-notes-201/&lt;/A&gt;&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;FeatureLayerCollectionManager&lt;/LI&gt;&lt;LI&gt;Fixes BUG-000146997 where overwrite() fails with AttributeError: 'PropertyMap' instance has no attribute 'Tables'&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 26 Aug 2022 18:43:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-attributeerror-when-trying-to-overwrite/m-p/1206882#M7682</guid>
      <dc:creator>cpatton_geojobe</dc:creator>
      <dc:date>2022-08-26T18:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Getting AttributeError when trying to overwrite feature layer in ArcGIS Online using API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-attributeerror-when-trying-to-overwrite/m-p/1207160#M7686</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/542410"&gt;@cpatton_geojobe&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for that workaround idea and the note on the new release solving this issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 11:40:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-attributeerror-when-trying-to-overwrite/m-p/1207160#M7686</guid>
      <dc:creator>ConradSchaefer__DOIT_</dc:creator>
      <dc:date>2022-08-29T11:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Getting AttributeError when trying to overwrite feature layer in ArcGIS Online using API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-attributeerror-when-trying-to-overwrite/m-p/1218781#M7849</link>
      <description>&lt;P&gt;This is what worked for me using Version 2.0.0, but I ended up just reverting back to 1.9.1 for a cleaner fix. Upgrading to 2.0.1, of course, is the best solution now.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 19:33:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/getting-attributeerror-when-trying-to-overwrite/m-p/1218781#M7849</guid>
      <dc:creator>Arlo</dc:creator>
      <dc:date>2022-10-04T19:33:37Z</dc:date>
    </item>
  </channel>
</rss>

