I have a script that runs and will publish and replace vector tile layers in portal. We have many vector tile layers that have to be updated on a regular basis. Every time I run this script, it works for most layers (~30 layers) but 2-3 random layers (it's different every time) end up failing on the replace stage with an error "Failed to replace service". If I go into Portal manually and try to replace the vector tile layers with the updated layer I just published to portal, I get an "undefined" warning and the original vector tile layer doesn't add to a map anymore. The only work around I have found is to delete the original vector tile pack and publish a new one with the same name. However, this requires me to update the script with the new item id and is not ideal. Any idea as to why vector tile layers will randomly fail to be replaced and will become undefined?
This issue seems like it might be fixed starting at Enterprise 11.1
We still face the issue in 11.1 and start testing 11.2 hopefully at the end of the week.
I am still facing this issue in 11.2
Has anyone resolved this issue or determined there is an open bug with ESRI ? It's February 2024 and it still persists - I'm unable to replace a vector tile layer from either the API using python or even directly from using the Replace Layer tool on the Details page of the vector tile layer on portal.
I can confirm today that ReplaceWebLayer for vector tile packages does not work in AGOL.
This looks like the bug: https://support.esri.com/en-us/bug/the-error-messages-error-000952-failed-to-execute-unabl-bug-00015...
I don't remember the version of AGOL but the command used to work a couple of years back.
Running ArcGIS Enterprise 11.3 and start having from time to time this very same failure.
Code is using ArcGIS API for Python. Every week, we update our vector tiles basemap using this worfklow. And the same code fails from time to time.
That's a bummer it's still an issue in 11.3. Guess we won't be in a hurry to update. I'm in the same boat where some of my python scripts work and others fail. It may be the same vector tile layer that fails each time, do you guys notice if it's the same one every time or is it random ones?
It's completely random. We update about 30 vector tile layers every day and it can always happen that one or two fail.