I foo barred a feature host.. I deleted the feature host from my contents. I tried to publish the using the same folder and file name and it fails. Saying the name already exists.. I realize I can use I different name.. But I have had other issues similar to this.
I had a transparency setting at 60%. Changed it to 0%. Never changed. Two days later the setting took. SMH.
Any ideas?
Solved! Go to Solution.
Solved!! I recently enable the recycling bin.. Permanently deleted the file.
But the file didn't show in my layer search.. I guess thats on me?
Solved!! I recently enable the recycling bin.. Permanently deleted the file.
But the file didn't show in my layer search.. I guess thats on me?
Yeah, the Recycle Bin is a wee bit problematic. I disabled it as I found that, whilst using FME/Data Interoperability, I was getting publishing issues .
Thanks Chet. Be aware!! The error can happen when performing normal programmatic actions, in Python for instance. Basically a version of the below action - trying to publish a shapefile, wherein a feature class of the same name has already been published and deleted, will trigger the Exception you posted:
mygis = GIS(username = <username>, password = <password>))
items = mygis.content.search('<myusername> AND title: <redacted>_XSections_Intersect_Parcels', item_type = "Shapefile", max_items = 250)
d = {"name":"<redacted>_XSections_Intersect_Parcels","maxRecordCount":5000}
items[0].publish(publish_parameters=d)
In reality, this is a reference to the aforementioned, deleted feature class.
Go to the Recycle Bin and delete it.