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-4E92
https://pro.arcgis.com/en/pro-app/3.1/arcpy/sharing/mapservicedraft-class.htm#GUID-5EF32499-622E-4B2C-A8F5-5792912DC5A4
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.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und vieles mehr. Neu hier? Erstelle ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.