Hi, I've published a feature service from a zipped shapefile. Now when I want to rewrite this service, I get this message.
AttributeError: 'str' object has no attribute 'type'
Don't know when there could be a problem? My item id is correct.
Thanks
FeatureLayerCollection.fromitem takes an Item as its argument. Try:
FeatureLayerCollection.fromitem(gis_AGOL.content.get('itemID'))
Is there a change in schema of the original zipped shapefile and the current one?
According to Overwrite hosted feature layers , You must use the same source file type and schema when you overwrite a hosted feature layer.