Hi all
I have a python script using the API that publishes shapefiles to ArcGIS Online. However, it fails the publish step with the error "Service name 'x' already exists for 'y'".
The code has a check where if an item with a matching name exists, it edits that; if an item with that name is not returned from GIS.content.search then it creates a new feature service. The search returns no matching items and a manual check of AGOL shows no matches either. Also checked using the REST API IsServiceNameAvailable and that returns False.
How can I remove this service (which I can't find) in order to make available that name?
Thanks
Were you ever able to figure this out? I'm facing the same issue where is_service_name_available returns false when I am confident it shouldn't.
Edit: I should mention that I recently upgraded from 10.8.1 to 11.3
Same issue here. I'm actually trying to overwrite a hosted tile layer on ArcGIS online. I can't get that to work so now I want to simply delete it and create a new one - but I can't even do that due to this error.
Same issue here. Any news to figure this out?
Are you on AGE 11.3? I can't remember what I was working on when I was facing this issue and if I ultimately used another service name or ended up figuring it out. My best guess (with no evidence to back it up) is that the service name is cached somewhere and it's not being removed from the cache when the previous service of the same name is deleted. I've noticed some other unexpected behavior in portal due to what I presume to be caching. Perhaps give it a try in a few hours or tomorrow to see if it works, or restart the portal.
Same problem on AGO. Below is the error message:
Error publishing to ArcGIS Online: This service name is unavailable for Feature Service.
Not sure if this was the cause of your issue, but I was running into this and what was happening was that my service still existed in the Recycle Bin of AGOL - I had completely forgotten that deletes in AGOL are "soft deletes" now.