So I had an old model that was converted to Python from ArcMap 10.4, meaning it was exported in 2.7.
The model includes the Manage Map Server Cache Tiles tool, and running it in 2.7 works.
However, this script needs converted to 3.6 and will not work due to the following error:
Error: Failed to execute. Parameters are not valid.
ERROR 001265: Admin or publisher connection required.
Failed to execute (ManageMapServerCacheTiles).
I am working off of the ESRI tool reference page, but I cannot get this Admin input service to work.
The examples include the connection File being speicifed (and I have tried including that), but naturally the tool export does not.
I've tried it two different ways - with the 6080 port specified and below, which is the redirected server address.\
This is what model exported as:
"GIS Servers\\arcgis on <MyServer>_6080 (admin)\\FranklinHostedGIS\\FC_TaxRecords.MapServer"
These are my various attempts
"GIS Servers\\arcgis on <MyServer> (admin)\\FranklinHostedGIS\\FC_TaxRecords.MapServer"
connectionFile = r"C:\Users\<username>\AppData\Roaming\ESRI\Desktop10.4\ArcCatalog" server = "arcgis on MyServer_6080 (admin)" serviceName = "FC_TaxRecords.MapServer" inputService = connectionFile + "\\" + server + "\\" + serviceName
Try using the ArcPro documentation
connectionFile = r"C:\Users\arcgis\AppData\Roaming\ESRI\Desktop10.4\ArcCatalog" server = "admin on <myServer>.ags" serviceName = "FC_TaxRecords.MapService" inputService = connectionFile + "\\" + server + "\\" + serviceName