Hi All,
I am working on task to update MultiPatch data published as a Web Layer to ArcGIS portal, To achieve this I have written python script to overwrite Web Layer by referring to Upload Service Definition—Help | ArcGIS for Desktop .
But ended with error!!
ExecuteError("ERROR 999999: Error executing function.\nService name 'Test_Publish' already exists for '0123456789ABCDEF'\nFailed to execute (UploadServiceDefinition).\n",).
Anyone achieved this? appreciate for any ideas! Thanks in Advance. In case if i am doing something wrong please flash. Python function as below.
def publishWebLayer(market):
try:
layerName = market+"_"+"Buildings_WithInfo";
aprx = arcpy.mp.ArcGISProject('C:\\Users\\jll.innovation\\Documents\\ArcGIS\\Projects\\Lease_Services\\Lease_Services.aprx');