Change data Source of published map service

9931
16
03-18-2015 10:41 PM
MukeshA
New Contributor II

Hello,

Is there any way to change the data source of the published Map & Feature services?

Tags (2)
0 Kudos
16 Replies
omega_cancer
Occasional Contributor II

I am afraid answer is no.

Unpublish, reset data and re publish.

0 Kudos
MukeshA
New Contributor II

Thanks Razak for the reply, but its very strange to know this.

0 Kudos
omega_cancer
Occasional Contributor II

Try restarting the Map Service after changing the source data if it is Dynamic Map Service, while for the Tiled services you need to obviously create tiles again.

For Feature Services restarting might not be required as I have not tested it.

Point is try restarting the service. It works for me.

0 Kudos
MukeshA
New Contributor II

I tried restarting the Services & also ArcGIS Server but no luck..

0 Kudos
JenniferMcCall4
Occasional Contributor III

There is an option to overwrite the existing service.

You can change the data sources in your mxd.  Then when publishing, choose to Overwrite an existing service, rather than publishing a new service.  You will not have to delete the existing service, and overwriting maintains all of the settings in the service.

FilipKrál
Occasional Contributor III

Jennifer's answer is right. I found it to be the easiest way to update data sources or other properties of a service. See also: Overwriting a service in ArcGIS for Desktop—Documentation (10.3 and 10.3.1) | ArcGIS for Server

However, things usually get complicated with tiled services. In theory it should work as the help says - if you keep "Update cache automatically", the server will be busy for some time bit it should deal with it. In practice though, I always run into difficulties with updating cached services and then spend long time fixing it. If you have any tips, please let me know.

I use 10.2.2

JenniferMcCall4
Occasional Contributor III

Hi Filip,

What kind of difficulties do you run into?  Have you tried not updating the cache automatically, and then manually starting caching once the service has been overwritten?

0 Kudos
FilipKrál
Occasional Contributor III

The issue I am dealing with at the moment appears to be similar to this:

Manage Map Cache Tile: Errors at 10.2.2

When I left "Update cache automatically" ticked while overwriting the service, I can then see my CPUs work harder. Once the CPU load drops again (caching has finished) and I preview the service, some tiles were obviously missing (HTML Error 404).

I then tried to re-create the tiles using Manage Map Cache Tile tool but it errors out saying:

Output failure, error string = Error moving bundle

Failed to cache extent:...

and then it repeats for each process (i.e. each CPU that worked on it).

Filip.

JenniferMcCall4
Occasional Contributor III

I've had the error "Output failure, error string = Error moving bundle... Failed to cache extent:..." before.  In my experience, I have found that this is usually due to a corrupted bundle and will persist in that service until the specific bundle is deleted through windows explorer, and then re-cached.  Otherwise it would error out every time we cached an area in that specific bundle and scale.  This could be the problem, not actually the service overwrite causing an issue.

If it is the service overwrite causing an issue when the service has the Update Cache Automatically option set, i would recommend setting it to Manual when overwriting the service.  Then running the cache generation separately.  Maybe something happens on the back-end that corrupts the bundle when you overwrite with the Automatic option set?