AnsweredAssumed Answered

Overwrite existing hosted feature service

Question asked by jmikolajczyk_azgfd on Jan 9, 2019
Latest reply on Jan 10, 2019 by KCullen-esristaff

I'm using the process outlined here: FeatureSharingDraft—Sharing module | ArcGIS Desktop  and am getting an error that the layer already exists. ExecuteError: ERROR 001398: Service name 'WolfTelemetryDataOnline' already exists.
Failed to execute (UploadServiceDefinition).

 

I've tried adding in this parameter, but it still fails: arcpy.env.overwrite_existing_service = True

 

Is there a way to overwrite a hosted feature service from arcpy, or should I stick to using the Python API for this using sdItem.publish(overwrite = True)?

Outcomes