Phantom services

797
7
03-16-2023 01:29 PM
ShariF
by
New Contributor III

We have a situation where we have services that are pointing to an old geodatabase and when we go to server where the .mxds reside that created the services the source cannot be found (red exclamation point) OR the .mxd's  no longer exist.  I'm trying to understand how that's possible? I feel like all of the services should contain nothing and when an app is opened it should only show the basemap. Granted the services are showing old data, but how are they showing anything at all. If someone can help me understand how that is working like that I'd appreciate it. Please note, we are in the process of updating all of our services to fix this issue but it's been like this for a very long time. 

7 Replies
DavidPike
MVP Frequent Contributor

On publishing, the data can either be referenced (registered data so0urce in the ArcGIS Server data store tab in server manager) or copied to the server (this is different from a hosted feature).

https://enterprise.arcgis.com/en/server/10.3/publish-services/linux/copying-data-to-the-server-autom....

long story short, in one of the ArcGIS Servers the service was published to, you will likely find the data and a copy of the publishing MXD in a location something like this - <drive>:\arcgisserver\directories\arcgissystem\arcgisinput\<service_name>

0 Kudos
MichaelVolz
Esteemed Contributor

So the service would still have data only if the data was copied to the server and not referenced from it's long deleted location, correct?

0 Kudos
DavidPike
MVP Frequent Contributor

That should be the case yes.  It would be worth checking the MXD data sources (MXD that was copied with the service to ArcGIS Server) as the MXD publishing location is not necessarily where the data is referenced from.  You can also interrogate the JSON manifest which lists the data source workspaces for the service.  I can't remember if this is available through the server manager GUI or you need a script.  I have a few scripts to do this I think. 

Also worth checking through your registered folders and databases in the Server Manager Data Stores tab for possible data locations.  Was there any service related data in the ArcGIS Server folder?

0 Kudos
ShariF
by
New Contributor III

David thank you for your response. BTW this is supposed to be categorized under ArcGIS Online not ArcGIS Enterprise, but we have the same issue for both. So if the previous staff selected "Copy all data" that's what you are referring to?

2023-03-16 16_37_10-10.1.1.65 - vSphere Client.png

 and therefore that's why we can see data? 

0 Kudos
DavidPike
MVP Frequent Contributor

Are these hosted feature services or Feature/Map services?  In AGOL, is your site in a collaboration with your internal Portal or is your ArcGIS server public facing and the services added to AGOL?  This is important to understanding what is going on.  Screenshots would help as I'm not understanding how it is AGOL.

0 Kudos
ShariF
by
New Contributor III

So I explored the path you suggested and YES, some of the services do have the .mxd within the path: 

<drive>arcgisserver\directores\arcgissystem\arcgisinput\Map\Map.MapServer\extracted\v101

but not all. So i'm assuming those that do not have the copied project files chose "Reference registered data" radio button?

0 Kudos
DavidPike
MVP Frequent Contributor

I would say so, but best to get a second opinion as I get confused regularly by some quirks.

0 Kudos