Replacing a missing SD file

425
1
07-25-2017 04:04 PM
AdamCrateau1
Occasional Contributor

Is there any method for replacing a service definition in AGOL for a hosted feature service, if the SD is accidentally deleted?

This is a feature service that is updated/overwritten weekly. 

Thanks for any suggestions!

0 Kudos
1 Reply
KellyGerrow
Esri Frequent Contributor

Hi Adam,

Having the SD file is only required when publishing from ArcMap. If you must publish from ArcMap, i suggest republishing the sd file and feature layer. You can enable delete protection on the sd file to prevent it from being deleted accidentally. You can overwrite feature services from SD files through the Rest API or using ArcGIS Pro without having an uploaded SD file.

Here is a sample script that is publishing from an FGDB, but the same concept applies:

http://cloudygis.maps.arcgis.com/home/item.html?id=2d7027b148e24005916e55ab2cb74b50 

or publish through the ArcGIS Python API

arcgis.gis module — arcgis 1.2.0 documentation 

-Kelly