Select to view content in your preferred language

overwrite feature service error

529
2
05-03-2021 11:41 AM
JiříKomínek
Occasional Contributor

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.

Thanksimage.pngimage.png

Tags (2)
0 Kudos
2 Replies
jcarlson
MVP Esteemed Contributor

FeatureLayerCollection.fromitem takes an Item as its argument. Try:

FeatureLayerCollection.fromitem(gis_AGOL.content.get('itemID'))
- Josh Carlson
Kendall County GIS
JayantaPoddar
MVP Esteemed Contributor

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.



Think Location
0 Kudos