<?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: Publishing GP Model with &amp;quot;Manage Map Server Cache Tiles&amp;quot; Tool fails in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-gp-model-with-amp-quot-manage-map/m-p/132199#M5074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I like the System Caching tools approach. When I try and run that tool from ArcMap for one scale level I get the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Server Messages&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Submitted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Executing...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Executing (Manage Map Cache Tiles): ManageMapCacheTiles &lt;/SPAN&gt;&lt;A href="http://localhost:6080/arcgis/rest/services/GFX/Moncton/MapServer"&gt;http://localhost:6080/arcgis/rest/services/GFX/Moncton/MapServer&lt;/A&gt;&lt;SPAN&gt; 9027.977411 2 RECREATE_ALL_TILES # # "Feature Set"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Start Time: Wed Nov 21 13:38:49 2012&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 999999: Error executing function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS Server requires a service type (ParentType) and a server object extension type (Type).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (Manage Map Cache Tiles).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed at Wed Nov 21 13:38:49 2012 (Elapsed Time: 0.00 seconds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Nov 2012 16:42:37 GMT</pubDate>
    <dc:creator>MapEnglish</dc:creator>
    <dc:date>2012-11-21T16:42:37Z</dc:date>
    <item>
      <title>Publishing GP Model with &amp;quot;Manage Map Server Cache Tiles&amp;quot; Tool fails</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-gp-model-with-amp-quot-manage-map/m-p/132195#M5070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run the Analyzer it complains about:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Data source used by Model RecreateMapTiles2 is not registered with the server and will be copied to the server: GIS Servers/arcgis on ctmnr03_6080 (admin)/GFX/Moncton.MapServer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And the model does not publish. The underlying data that the map service connects to is registered with the server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts as to how I can get this published would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt English&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Esri Canada&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 14:12:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-gp-model-with-amp-quot-manage-map/m-p/132195#M5070</guid>
      <dc:creator>MapEnglish</dc:creator>
      <dc:date>2012-11-21T14:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing GP Model with "Manage Map Server Cache Tiles" Tool fails</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-gp-model-with-amp-quot-manage-map/m-p/132196#M5071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Without testing this - you're saying it doesn't publish? (fails when you actually push Publish?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have fixed analyzer messages for other service types throwing misleading messages that data will be copied (namely ImageServices and Geodata Services coming up in SP2). But thats it, just the message said data would be copied, when in fact its just the connection file being copied (no harm there). So in the end they publish correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it isnt publishing, can you save your connection file into your working directory beside the model, use that reference inside your model and then register that folder with the data store. Any luck?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 14:35:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-gp-model-with-amp-quot-manage-map/m-p/132196#M5071</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2012-11-21T14:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing GP Model with "Manage Map Server Cache Tiles" Tool fails</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-gp-model-with-amp-quot-manage-map/m-p/132197#M5072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Correct. It does not publish, even with your suggested workflow below. Attached is the Model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 14:48:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-gp-model-with-amp-quot-manage-map/m-p/132197#M5072</guid>
      <dc:creator>MapEnglish</dc:creator>
      <dc:date>2012-11-21T14:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing GP Model with "Manage Map Server Cache Tiles" Tool fails</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-gp-model-with-amp-quot-manage-map/m-p/132198#M5073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I see.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hmmm...At first thought I not entirely sure the cache tools are meant to be published as a service. (I'll have to check with a couple people). Regardless there should be a better experience than it failing in publish. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm guessing you want to on-demand supply an area of interest and update that cache?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can offer you the workaround of simply using the caching tools which already exist as a service in the System folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can either consume the service directly or bring it into a local model and set parameters as required.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 14:59:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-gp-model-with-amp-quot-manage-map/m-p/132198#M5073</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2012-11-21T14:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing GP Model with "Manage Map Server Cache Tiles" Tool fails</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-gp-model-with-amp-quot-manage-map/m-p/132199#M5074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I like the System Caching tools approach. When I try and run that tool from ArcMap for one scale level I get the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Server Messages&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Submitted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Executing...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Executing (Manage Map Cache Tiles): ManageMapCacheTiles &lt;/SPAN&gt;&lt;A href="http://localhost:6080/arcgis/rest/services/GFX/Moncton/MapServer"&gt;http://localhost:6080/arcgis/rest/services/GFX/Moncton/MapServer&lt;/A&gt;&lt;SPAN&gt; 9027.977411 2 RECREATE_ALL_TILES # # "Feature Set"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Start Time: Wed Nov 21 13:38:49 2012&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 999999: Error executing function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS Server requires a service type (ParentType) and a server object extension type (Type).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (Manage Map Cache Tiles).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed at Wed Nov 21 13:38:49 2012 (Elapsed Time: 0.00 seconds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 16:42:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-gp-model-with-amp-quot-manage-map/m-p/132199#M5074</guid>
      <dc:creator>MapEnglish</dc:creator>
      <dc:date>2012-11-21T16:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing GP Model with "Manage Map Server Cache Tiles" Tool fails</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-gp-model-with-amp-quot-manage-map/m-p/132200#M5075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The end result is that, from a JavaScript API app, I want to supply an on-demand gdb featureclass to update a tile cache.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 17:19:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-gp-model-with-amp-quot-manage-map/m-p/132200#M5075</guid>
      <dc:creator>MapEnglish</dc:creator>
      <dc:date>2012-11-21T17:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing GP Model with "Manage Map Server Cache Tiles" Tool fails</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-gp-model-with-amp-quot-manage-map/m-p/132201#M5076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Matt,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I deal more with GP as a whole than specific tools (like caching), I asked around and confirmed that the best way to use the caching tools is to consume the built in ones from Desktop which call the GP-Service based caching tools.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively its ok to consume the services directly from the end point like you're doing, you just dont get as good a user experience. However, this leads to your next problem - passing the appropriate parameters "by hand" off to the caching service&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That said, the error you're getting is because how the published caching service expects the input for MapService. When consuming it in ArcMap you need to pass it a real connection file, but when consuming it in REST you want to pass a string in the notation :&amp;nbsp; Moncton:MapServer &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, your end goal of sending a GDB of featureclasses with extents is going to be troublesome from a webapp.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You'll have to handle uploading a zipped up fGDB through the webapp, then have server side code (probably a GP service) to unzip that, search through the fGDB and then pass the FC to the GP Caching service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also keep in mind that the Caching tools are security enabled by default. So any web application you create would have to handle authentication. (not just any user can fire up the site and do cache management)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also been told that some caching improvements have been targeted for SP2 in terms of cache management inside Manager. These improvements sort of cross into the goal of your project. SP2 is still a little ways off, so I cant commit anything, just that its on the list of things we'd like to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Help links for reference:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/#/Creating_a_map_cache/0154000005nw000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/#/Creating_a_map_cache/0154000005nw000000/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/#/Ways_to_add_tiles_to_a_cache/0154000002rr000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/#/Ways_to_add_tiles_to_a_cache/0154000002rr000000/&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00540000000p000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//00540000000p000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 17:49:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-gp-model-with-amp-quot-manage-map/m-p/132201#M5076</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2012-11-21T17:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing GP Model with "Manage Map Server Cache Tiles" Tool fails</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-gp-model-with-amp-quot-manage-map/m-p/132202#M5077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The only thing I could get to publish was a python script tool, with the admin connection file to the map service in a registered data store:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Import arcpy module&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Script arguments&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Moncton_BuildingFootprintsDeltas = arcpy.GetParameterAsText(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if Moncton_BuildingFootprintsDeltas == '#' or not Moncton_BuildingFootprintsDeltas:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Moncton_BuildingFootprintsDeltas = "D:\\Data\\Moncton\\Moncton_BACKUP.gdb\\Moncton_BuildingFootprintsDeltas" # provide a default value if unspecified&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Local variables:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Output_Map_Service_URL = Moncton_BuildingFootprintsDeltas&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Moncton_MapServer = "D:\\Data\\Moncton\\arcgis on ctmnr03_6080 (admin)\\GFX/Moncton.MapServer"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Process: Manage Map Server Cache Tiles&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.ManageMapServerCacheTiles_server(Moncton_MapServer, "9027.977411;4513.988705;2256.994353;1128.497176", "RECREATE_ALL_TILES", "2", Moncton_BuildingFootprintsDeltas, "-7232467.31199099 5782907.54217863 -7190044.76129278 5809736.93910669", "WAIT")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This GP service is executed after a prior service creates Area of Interest polygons so I'm not really having to provide the featureclass from the JavaScript app itself; everything is happening on the server in sequence.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 12:30:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-gp-model-with-amp-quot-manage-map/m-p/132202#M5077</guid>
      <dc:creator>MapEnglish</dc:creator>
      <dc:date>2012-11-22T12:30:52Z</dc:date>
    </item>
  </channel>
</rss>

