Select to view content in your preferred language

Server connection when publishing tile cache using python script

2188
5
Jump to solution
11-24-2020 02:26 PM
PeterMilenkovic
Frequent Contributor

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

0 Kudos
1 Solution

Accepted Solutions
PeterMilenkovic
Frequent Contributor

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

0 Kudos
5 Replies
MichaelVolz
Esteemed Contributor

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

0 Kudos
PeterMilenkovic
Frequent Contributor

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

 

0 Kudos
PeterMilenkovic
Frequent Contributor

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

 

 

 

 

 

0 Kudos
MichelleMestrovich1
Regular Contributor

Peter,

I'm having  similar issue can you show an example of how your input parameter looks as a list?


Thank you

0 Kudos
ATFerguson
Occasional Contributor

I'm having a similar issue but my AGS environment is federated with my Portal, which doesn't allow me to establish an admin/publisher connection (only user). Do you happen to know what the protocol is in this situation?

0 Kudos