I work for a local council in the UK and we have recently had our GIS infrastructure upgraded. I am trying to restore some ArcGIS online public web maps / apps that are now not functioning due to issues with basemaps and other services we have hosted on our new external ArcGIS server.
After republishing some services my understanding was that Id go into the layers within ArcGIS online, go to settings and change the URL to reflect the new rest URL in ArcGIS Server Manager. However having done this and saving the changes into the layers on ArcGIS online this is not working as I expected.
The services are all set to public / everyone in their permissions and if I bring these layers back into ArcGIS via add data > Layer from web ina blank map, it works fine, but when I try to open a previously created web map that uses these layers which I have updated with the new URLs the layers fail to load and I just get a blank map. Short of updating the URL in the layers settings I don’t know what else I would / should need to do ??
Im completely out of ideas on this and have been trying for the last few days to no avail.
Any advice would be greatly appreciated.
Please take a look at the below link to see an example of this ..
When you open it you get a basemaps not available message and no other layers load into the map, it just shows as a blank map.
Great thanks! It looks like the server folder structure may have been changed as part of the infrastructure update. If you look at the url references to your services in the web map json, you will see that the services are in a specific folder (you can inspect web maps using a tool such as ArcGIS Online Assistant 😞
However, the folder rcbc doesn't appear to exist on the upgraded server (at least publicly):
I didn't look too deeply but it seems the services exist in these other folders listed above. To resolve this, you would either need to update the server to match the old folder structure or update each map / app referencing the layers (would need to use a tool where the json can be modified, such as the agol assistant posted above. Or re-add each layer, which can be a lot of work). The former option is usually the best (update the server rather than trying to update all the maps referencing it), but sometimes not possible.
Hi Chris, Thanks for the reply, would this be the same for my basemaps layer? even though I have updated the URL in the settings tab of the layer within arcgis online, as its folder structure on the new ArcGIS server is different to the old one , I will need to resolve this also ?
When I lover over the layers for the map in the definition page, I can see the links are to layers on our arcgis server, but the basemaps url is for that layer within arcgis online and not the rest url like the other layers???
thanks so much once again
Hi Ben, yes - it looks like the basemap has the same issue (and would need the same resolution posted above). Here is a screenshot of the basemap url in your web map:
The web map references https://rcbcmaps.redcar-cleveland.gov.uk/maps/rest/services/rcbc/Basemaps_ext/MapServer but it appears that the service now resides in the Basemaps_ext folder:
The reason you're seeing the basemap show as a layer in ArcGIS Online when hovering over the layers on the item details page is because the service has been added as its own layer item in ArcGIS Online (but the url for the service is still ultimately your ArcGIS server service). That item (http://rcbc.maps.arcgis.com/home/item.html?id=04031a88daeb4d0f8036bc10e60a81d8) would need to be updated as well (you can do this from the settings tab on the item details page).
Hope this helps.