Select to view content in your preferred language

How to create an arcgis server connection file with the python 3.x environment (from ArcGIS Pro)

4513
2
Jump to solution
04-01-2021 06:08 AM
Labels (2)
nutscrewbolt
Emerging Contributor

Hi

Is the arcpy function in python 3.x to create an arcgis server connection file (*.ags) exposed like CreateGISServerConnectionFile

https://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/creategisserverconnectionfile.htm

 

1 Solution

Accepted Solutions
JoshuaBixby
MVP Esteemed Contributor

I think the short answer is still, you don't, unfortunately.  The Create GIS Server Connection File tool isn't/wasn't a core geoprocessing tool but an ArcPy Mapping function, and the ArcPy Mapping module was completely overhauled between ArcMap and Pro.  I haven't double checked in Pro 2.7, but last time I looked into this issue there was no good solution.

UPDATE:  See https://community.esri.com/t5/arcgis-pro-questions/how-to-create-an-arcgis-server-connection-file-wi...for an option on using the undocumented  arcgisscripting._createGISServerConnectionFile.

View solution in original post

2 Replies
JoshuaBixby
MVP Esteemed Contributor

I think the short answer is still, you don't, unfortunately.  The Create GIS Server Connection File tool isn't/wasn't a core geoprocessing tool but an ArcPy Mapping function, and the ArcPy Mapping module was completely overhauled between ArcMap and Pro.  I haven't double checked in Pro 2.7, but last time I looked into this issue there was no good solution.

UPDATE:  See https://community.esri.com/t5/arcgis-pro-questions/how-to-create-an-arcgis-server-connection-file-wi...for an option on using the undocumented  arcgisscripting._createGISServerConnectionFile.

MarkoPolo
Occasional Contributor

Thankyou Joshua. 

 

What a joke however, ArcGIS Pro is junk ware. Truly the worst software I have ever used. There should be an arcpy API for functions that are prerequisites to any GP tool API (i.e. creating map service cache titles).