Can ArcPy overwrite an existing map service when publishing to ArcGIS Server from ArcGIS Pro?

838
2
Jump to solution
07-12-2019 09:04 AM
EricaPfister
New Contributor III

I can publish a new map service from ArcGIS Pro 2.3. However, I can't seem to find a parameter that lets me overwrite an existing map service. Is that an available functionality, or is it only possible if I delete the map service and then recreate it from scratch?

1 Solution

Accepted Solutions
ThomasColson
MVP Frequent Contributor

sddraft.overwriteExistingService = True

Is your service in a "folder" on the GIS Server? Is it stand-alone or federated?

View solution in original post

2 Replies
ThomasColson
MVP Frequent Contributor

sddraft.overwriteExistingService = True

Is your service in a "folder" on the GIS Server? Is it stand-alone or federated?

EricaPfister
New Contributor III

Thank you, that was the solution! I expected it to be part of the upload process, not the service draft.

The ArcGIS Server is standalone -- the service is not in a folder (but I'd like it to be, and I have a different question about that).

0 Kudos