Select to view content in your preferred language

Publishing error say file still exist.

589
3
Jump to solution
08-22-2024 09:28 AM
Labels (1)
ChetShuler
Regular Contributor

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?

0 Kudos
1 Solution

Accepted Solutions
ChetShuler
Regular Contributor

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? 

View solution in original post

0 Kudos
3 Replies
ChetShuler
Regular Contributor

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? 

0 Kudos
JonathanMcD
Frequent Contributor

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 .

ZacharyUhlmann1
Frequent Contributor

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) 

recylce_bin_error.png

In reality, this is a reference to the aforementioned, deleted feature class.

Go to the Recycle Bin and delete it.

0 Kudos