Select to view content in your preferred language

Manage Tile Cache in ArcPy

8311
2
07-14-2015 03:10 PM
RosalynCarey
Deactivated User

Issues with the Manage Tile Cache Tool in ArcPy.

I have tried writing the python myself, exporting from ModelBuilder, and copying a python snipet from the Geoprocessing results window.

All versions give the same error:

"ERROR 000204: Error creating input feature cursor

Failed to execute (ManageTileCache)."

Not sure if I need to create a insert cursor, but my understanding was that insert cursors do not work with rasters. 

Here are the three ways I have tried in python and all three give the same error.

# Process: Manage Tile Cache

folder = "C:/Test_TileCache"

mode = "RECREATE_ALL_TILES"

cacheName = "Test_Cache"

dataSource = "C:/Test_TileCache/test_tileCache.gdb/test_mosaic_dataset"

method = "ARCGISONLINE_SCHEME"

tilingScheme = "#"

scales = "36111.909643;18055.954822;9027.977411;4513.988705;2256.994353"

areaofinterest = "Feature Set"

maxcellsize = "#"

arcpy.ManageTileCache_management(folder, mode, cacheName, dataSource, method, tilingScheme, scales, areaofinterest, maxcellsize)

    #arcpy.ManageTileCache_management("C:/Test_TileCache","RECREATE_ALL_TILES","Test_Cache","C:/Test_TileCache/test_tileCache.gdb/test_mosaic_dataset","ARCGISONLINE_SCHEME","#","36111.909643;18055.954822;9027.977411;4513.988705;2256.994353","Feature Set","#","36111.909643","2256.994353")

    #arcpy.ManageTileCache_management("C:\Test_TileCache","RECREATE_ALL_TILES","Test_Cache","C:\Test_TileCache\test_tileCache.gdb\test_mosaic_dataset","ARCGISONLINE_SCHEME","","","","","36111.909643", "2256.994353")

Has anyone else tried the Manage Tile Cache in ArcPy? I am running 10.2.1, but do not have any issues with the tool when running it through ArcMap.

Thank you!

2 Replies
EricIronside
Esri Regular Contributor

I am having the same issue in 10.3.1. Identical process (run tool in Catalog, export python snippet)

0 Kudos
RosalynCarey
Deactivated User

After talking to ESRI Tech support, try changing areaofinterest = "Feature Set" to areaofinterest = "#" in python.