AnsweredAssumed Answered

Update tiles with Manage Tile Cache tool?

Question asked by bnelson1985 on Nov 21, 2016
Latest reply on Jan 29, 2018 by MDonnellyesriaustralia-com-au-esridist

I'm trying to use the Manage Tile Cache tool (ManageTileCache_management, not the server tool ManageMapServerCacheTiles_server) in a Python script to create a tile cache dataset for some of our data.  According to the documentation, it can be used to "create new tiles, replace missing tiles, overwrite outdated tiles, and delete tiles." (Emphasis mine.) 

 

From the descriptions of the in_cache_location and in_cache_name parameters, and being unable to find much in the way of examples, I assumed that passing a value (the dataset name) for in_cache_name would create a tile cache, and passing None (and using the full dataset path in in_cache_location) would update an existing tile cache. I was able to successfully create a tile cache based on this assumption.

However, trying to update the cache later on, the latter method (in_cache_location="path/to/dataset", in_cache_name=None) caused an error 000735 "Cache Name: Value is required" (despite that in_cache_name is labelled "optional" in the documentation), while the former (in_cache_location="path/to/", in_cache_name="dataset") caused an error 000258 "Output already exists" (well, that was the plan, and now I want to update it).
That said, how do I use this tool to update a tile cache?  Am I doing something wrong? or is this a bug I'll need to work around?

Outcomes