arcgis pros1
Arcgis Pro - OVERWRITE existing Standalone Service using python The current process in Arcgis Pro (Manual Only)
I have and existing service published to standalone Arcgis server 10.6 that is cached, and I want to automate an Overwrite process that retains the cache but replaces the base data I use for popups. I've been doing this for years and its simple in arcmap ... Its also simple in Arcgis Pro if I right click on the service and use the Overwrite function - but I need to automate in notebook this but there does not appear to be anything in python to do this .. Or have I missed a process?
I have followed some threads with various leads .. but so far I have been unsuccessful... I can create a sddraft and an sd for the service with the new content - but when I try UpLoadServiceDefniition .. it fails with service already exists but I cannot seem to find any switch to allow it overwrite ?
In the future I will be doing this with hosted features on my portal - but for the moment this is not an option for me.
Any pointers would be hugely helpful please... my efforts so far have not been successful.
Regards
Paulg