Cannot publish map service with new tile cache

151
0
02-10-2022 09:20 AM
MollyFoley
Regular Contributor

I'm trying to publish a map service and have it create a new tile cache at publishing. I am connected to my server with an administrator connection. In the map service properties I choose:

Layer Drawing: Using tiles from new cache
Tiling scheme: ArcGIS Online/Bing Maps/Google Maps
I select my levels of detail, img format of PNG
I have "Cache automatically on the server" turned on. I have checked that the cache directory is correctly mapped.
For extent I have used "Area of Interest" and chosen the feature layer that I want to create tiles for.

The map service seems to publish empty, and in the arcgiscache folder, I see a folder of the name of the service I published, but there are no tiles in it. The tool results say this in the last few messages

Validating service definition
Creating the service.
Succeeded.
Publishing map service succeeded.
Publishing tool succeeded.
Sucessfully completed publishing call
Post-processing on the server
Initializing caching process on the server
Error: Problem submitting tile caching job

Google searches suggest restarting the CachingControllers and CachingTools services which I have done multiple times over. I have also viewed the logs in Debug mode and it seems like something is being submitted with empty parameters:

Error executing tool. Manage Map Cache Tiles Job ID: <ID name>
ERROR 000735: Input Map Service or Image Service URL: Value is required
ERROR 000735: Scales: Value is required
ERROR 000735: Number of caching services instances: Value is required
ERROR 000800: The value is not a member of RECREATE_EMPTY_TILES | RECREATE_ALL_TILES | DELETE_TILES | COMPLETE_JOB | FIX_JOB | RESUME_JOB

Source: System/CachingControllers.GPServer

I have ensured that the CachingControllers service has enough instances available. 

Am I not understanding what "Layer Drawing > Using tiles from new cache" does? When hovering over it, the explanation given is "Draw from pre-cached images generated at scale levels you define." Does the "pre-cached" mean it's not going to create a cache for you, but rather you already have one sitting on the server that it will go look for? It seems like the next option would be more appropriate if that was the case ("Using an existing cache"). Based on the above error message, the CachingControllers is calling a tool that only works with existing map caches which would be why I'm getting the empty parameters.

I have tried saving the service definition and uploading it and it works successfully with no error messages, but the map service publishes empty (the thumbnail in server manager shows the map I want though) and no tiles are created in the arcgiscache > service name > map name > _alllayers folder. When I go to my rest/services page, I see the map service there and I see a list of tiles at each scale I want, but if I click "start tile" on any of them, I get a 404, not found error:

Screenshot 2022-02-10 121041.png


I hope someone has some insight because I'm stuck. If the solution is publishing a tile cache to the server before trying to publish the service, what tool would get me started?

 

Tags (1)
0 Kudos
0 Replies