Arcpy Exists fails for GIS Server Connection

07-07-2021 09:29 AM
New Contributor II

I'm writing a script to update some of our Cache services and I'm having a hard time connecting to the services via Arcpy. I have connected to the ArcGIS Server via ArcCatalog and the associated connection file (.ags) is in my local catalog folder (C:\Users\<user_name>\AppData\Roaming\ESRI\Desktop10.8\ArcCatalog\<server_name>.ags) but Arcpy.Exists() fails when trying to connect. I have existing .sde Database Connections that work so I'm not sure what I'm missing.

0 Kudos
1 Reply
MVP Esteemed Contributor
0 Kudos