Overwriting Feature Service Stand alone server

323
1
Jump to solution
04-17-2023 05:38 AM
christicles
New Contributor

Hi,

I'm trying to create a python script to automate the publishing of Map Services to a stand alone arcgis server. I've got a script working to publish the mapservices however,  I get an error when I try and overwrite a Mapservice which also needs to be a Feature service. I have the overwrite flag in the definition to true, but I still get an error that tells me there is already a Feature Service with that name. Is there a setting I'm missing? 

 

Edit: I've basically combined both elements of the 2 examples linked below, but it fails to overwrite the Feature service.

https://pro.arcgis.com/en/pro-app/3.1/arcpylsharingImapservicedraft-class.htm#GUID-F39810A0-180C-4E9...

https://pro.arcgis.com/en/pro-app/3.1/arcpy/sharing/mapservicedraft-class.htm#GUID-5EF32499-622E-4B2...

 

0 Kudos
1 Solution

Accepted Solutions
christicles
New Contributor

Never mind. Turns out to have been human error. I had the line to set the overwrite flag after the line to export the sdDraft.

View solution in original post

0 Kudos
1 Reply
christicles
New Contributor

Never mind. Turns out to have been human error. I had the line to set the overwrite flag after the line to export the sdDraft.

0 Kudos