Select to view content in your preferred language

Replace Vector Tile Layer fails

6293
20
11-03-2022 03:05 PM
AspenN
by
Regular Contributor

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?

20 Replies
RejeanLabbe
Regular Contributor

I got the same problem. I opened a case with ESRI but the conclusion was that there is no solution.

The best solution was to put a sleep before replaceWebLayer "time.sleep(20)". That helps, but it continue to fail sometimes.

The problem seems to be that the cache generation process is not completed. There is no way to get the process status. It looks like 10.9 allow to check the status, but it does not work on 11.x

https://enterprise.arcgis.com/en/server/10.9.1/publish-services/windows/viewing-cache-completion-sta...

0 Kudos