<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Update tiles with Manage Tile Cache tool? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/update-tiles-with-manage-tile-cache-tool/m-p/704558#M54546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brandon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you manage to find a solution to this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jan 2018 03:06:09 GMT</pubDate>
    <dc:creator>mdonnelly</dc:creator>
    <dc:date>2018-01-30T03:06:09Z</dc:date>
    <item>
      <title>Update tiles with Manage Tile Cache tool?</title>
      <link>https://community.esri.com/t5/python-questions/update-tiles-with-manage-tile-cache-tool/m-p/704556#M54544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to use the Manage Tile Cache tool (&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;ManageTileCache_management&lt;/SPAN&gt;, not the server tool &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;ManageMapServerCacheTiles_server&lt;/SPAN&gt;) in a Python script to create a tile cache dataset for some of our data.&amp;nbsp; According to &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/manage-tile-cache.htm"&gt;the documentation&lt;/A&gt;, it can be used to "create new tiles, replace missing tiles, &lt;STRONG&gt;overwrite outdated tiles,&lt;/STRONG&gt; and delete tiles." (Emphasis mine.)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the descriptions of the &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;in_cache_location&lt;/SPAN&gt; and &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;in_cache_name&lt;/SPAN&gt; parameters, and being unable to find much in the way of examples, I assumed that passing a value (the dataset name) for &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;in_cache_name&lt;/SPAN&gt; would&lt;EM&gt; create&lt;/EM&gt; a tile cache, and passing &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;None&lt;/SPAN&gt; (and using the full dataset path in &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;in_cache_location&lt;/SPAN&gt;) would &lt;EM&gt;update&lt;/EM&gt; an existing tile cache. I was able to successfully create a tile cache based on this assumption.&lt;/P&gt;&lt;DIV class=""&gt; &lt;/DIV&gt;&lt;DIV class=""&gt;However, trying to update the cache later on, the latter method (&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;in_cache_location="path/to/dataset", in_cache_name=None&lt;/SPAN&gt;) caused an error 000735 "Cache Name: Value is required" (despite that &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;in_cache_name&lt;/SPAN&gt; is labelled "optional" in the documentation), while the former (&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;in_cache_location="path/to/", in_cache_name="dataset"&lt;/SPAN&gt;) caused an error 000258 "Output already exists" (well, that was the plan, and now I want to update it).&lt;/DIV&gt;&lt;DIV class=""&gt; &lt;/DIV&gt;&lt;DIV class=""&gt;That said, how &lt;STRONG&gt;&lt;EM&gt;do&lt;/EM&gt;&lt;/STRONG&gt; I use this tool to update&lt;EM&gt; &lt;/EM&gt;a tile cache?&amp;nbsp; Am I doing something wrong? or is this a bug I'll need to work around?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 20:18:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/update-tiles-with-manage-tile-cache-tool/m-p/704556#M54544</guid>
      <dc:creator>BrandonNelson1</dc:creator>
      <dc:date>2016-11-21T20:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Update tiles with Manage Tile Cache tool?</title>
      <link>https://community.esri.com/t5/python-questions/update-tiles-with-manage-tile-cache-tool/m-p/704557#M54545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you said you were doing this in a script, which suggests that specifying None isn't the same as not specifying anything at all in the call to the function like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.ManageTileCache_management("C:/CacheDatasets/Manage", "RECREATE_ALL_TILES")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;param1 =&amp;nbsp;"C:/CacheDatasets/Manage"&lt;/P&gt;&lt;P&gt;param2 = "RECREATE_ALL_TILES"&lt;/P&gt;&lt;P&gt;arcpy.ManageTileCache_management(in_cache_location=param1, &amp;nbsp;manage_mode=param2)&lt;/P&gt;&lt;P&gt;somewhat overtly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with nothing else added, since the optional parameters need not be specified in a script, just the **kwargs name&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/manage-tile-cache.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/manage-tile-cache.htm"&gt;Manage Tile Cache—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 20:44:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/update-tiles-with-manage-tile-cache-tool/m-p/704557#M54545</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-11-21T20:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Update tiles with Manage Tile Cache tool?</title>
      <link>https://community.esri.com/t5/python-questions/update-tiles-with-manage-tile-cache-tool/m-p/704558#M54546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brandon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you manage to find a solution to this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2018 03:06:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/update-tiles-with-manage-tile-cache-tool/m-p/704558#M54546</guid>
      <dc:creator>mdonnelly</dc:creator>
      <dc:date>2018-01-30T03:06:09Z</dc:date>
    </item>
  </channel>
</rss>

