Server connection when publishing tile cache using python script

184
3
Jump to solution
11-24-2020 02:26 PM
PeterMilenkovic
New Contributor II

Hi

I have a python script which is used to determines areas of a tile cache that need to be updated. I am having issues with ManageMapServerCacheTiles accepting my server connection. I have saved the username and password to the connection file and set the type as 'publisher'. I have overwritten the map service with the same connection credentials, but i am still getting an error 'ERROR 001265: Admin or publisher connection required. Failed to execute (ManageMapServerCacheTiles).'

Dont know what else to try

Reply
0 Kudos
1 Solution

Accepted Solutions
PeterMilenkovic
New Contributor II

Found the issue

 

Turns out the inputService parameter has to be in a list, even though it was only 1 map service....

ESRI can you please update the reference on this page

https://pro.arcgis.com/en/pro-app/tool-reference/server/manage-map-server-cache-tiles.htm#GUID-3C038...

 

Peter

 

 

 

 

 

View solution in original post

Reply
0 Kudos
3 Replies
MichaelVolz
Esteemed Contributor

Is your ArcGIS Server (AGS) environment federated with a Portal?

Reply
0 Kudos
PeterMilenkovic
New Contributor II

Hi Michael

No it is not.

Here is my inputServer variable

service = r"C:\Users\gistaskscheduler\AppData\Roaming\Esri\Desktop10.7\ArcCatalog\arcgis on spar01 (publisher)\GXInternalMaps\GXBasemapCache_ArcGISPro.MapServer"

I used the example found here

https://pro.arcgis.com/en/pro-app/tool-reference/server/create-map-server-cache.htm

I noticed that it does not inlcued the '.ags' file extension.

Also do you think it matters if the server connection was created in ArcMap as opposed to ArcGIS Pro?

 

Cheers

Peter

 

Reply
0 Kudos
PeterMilenkovic
New Contributor II

Found the issue

 

Turns out the inputService parameter has to be in a list, even though it was only 1 map service....

ESRI can you please update the reference on this page

https://pro.arcgis.com/en/pro-app/tool-reference/server/manage-map-server-cache-tiles.htm#GUID-3C038...

 

Peter

 

 

 

 

 

View solution in original post

Reply
0 Kudos