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
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.
FeatureLayerCollection.fromitem takes an Item as its argument. Try:
FeatureLayerCollection.fromitem(gis_AGOL.content.get('itemID'))
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.