Select to view content in your preferred language

Change Map Service Data Source Without Republishing

1137
8
11-01-2022 04:06 PM
Status: Open
MatthewGeorge
Frequent Contributor

I'd like an easy way to change the data source for a Map Service in ArcGIS Server without having to republish the service with the new data source.

8 Comments
DavidForbuss1

I think you can do this by editing the json, but I'm not sure.  I'll look into it and see what I can find out.

MatthewGeorge

@DavidForbuss1how'd you go looking into editing the text files?

DavidForbuss1

I believe you can use the online assistant https://ago-assistant.esri.com/ 

to edit underlying json values.  Be careful with it though because they warn you that your service can end up corrupted if you mess anything up.  I've only toyed with it some with a test feature service, but seemed simple enough.  

 

MatthewGeorge

@DavidForbuss1 

I use AGO Assistant quite regularly and there is nowhere to edit the data source of a Feature/Map Service in the JSON that I can see, unless I'm missing something.

DavidForbuss1

This is the older version, but if you choose "View and Item's JSON", then select the item, it'll give you the option to edit the JSON.  

2023-03-21 12_44_40-Window.png

 

2023-03-21 12_44_04-Window.png

 

MatthewGeorge

@DavidForbuss1 

Thanks but what I meant is, I know you can edit an item's JSON from AGO Assistant but there's no where that you can change the referenced data source, i.e., the referenced Feature Class has been move from database A to database B so I need to point the reference to database B instead.

DavidForbuss1

Good point.  I don't see anywhere to do that.  I suppose you'd just have to republish and do an overwrite.

MatthewGeorge

@DavidForbuss1 

Hence this idea being submitted so that I don't have to do that every time...