Select to view content in your preferred language

Error connecting to server when using exportToSDDraft

181
0
09-04-2024 06:42 AM
kjtrottier
Emerging Contributor

Hello,

I am trying to publish a map service to our own server using arcpy, however no matter what I try I always get and error during the exportToSDDraft function saying Error connecting to server.

My code follows pretty close to the code example on how to do it:
https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/mapservicedraft-class.htm#C_GUID-2D203747-6A5...

I am able to do this with arcpy version that came with ArcMap with no issues and ArcGIS Pro is able to connect and access the server without issue when using the program but it is unable to do it when calling it from python.

There is another post like this but the only reply mentions using an .ags file which I am already doing.

Any help or insight would be greatly appreciated.

0 Kudos
0 Replies