In the course of automating my processes, I noticed that the storage format "EXPLODED" parameter is not being honored in a stand alone python script. Every time I run the tool, it always outputs ".bundle" files. It is supposed to output a folder structure with many ".png" image files.
<SPAN class="keyword token">import</SPAN> arcpy
arcpy<SPAN class="punctuation token">.</SPAN>ExportTileCache_management<SPAN class="punctuation token">(</SPAN>
<SPAN class="string token">"G:\GIS\Projects\Tile_Cache\GUI_packed_tile_cache\Map"</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="string token">"G:\GIS\Projects\Tile_Cache"</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="string token">"python_exploded_tile_cache"</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="string token">"TILE_CACHE"</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="string token">"EXPLODED"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="operator token"><</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN>DOES NOT WORK<SPAN class="punctuation token">,</SPAN> seems to only use <SPAN class="string token">"COMPACT"</SPAN><SPAN class="operator token">/</SPAN><SPAN class="string token">"COMPATV_V2"</SPAN>
<SPAN class="punctuation token">(</SPAN><SPAN class="number token">288895.277144</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="number token">144447.638572</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="number token">72223.819286</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="number token">36111.909643</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="number token">18055.954822</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="number token">9027.977411</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="string token">"G:\GIS\Projects\Tile_Cache\Tile_Features2.gdb\aoi"</SPAN>
<SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>This tool seems to work fine using the GUI in ArcGIS Pro. This is ok, I guess, but my workflow involves many other steps, which are all automated in Python.
Using the exact same parameters and inputs, I have two different results:
Running the tool using the GUI in ArcGIS Pro, the output is correct:


However, using a stand alone python script, the tiles are not exploded. Instead, they are still packed in a ".bundle" file.


Note: I've tried this with the input tile cached created with both the ArcGIS Pro GUI "Managed Tile Cache" tool and the stand alone "arcpy.ManageTileCache_management()" tool, which works as it's supposed to in both cases.