Select to view content in your preferred language

How to update url in ArcMap mxd for layers coming from ArcGIS REST Services Directory?

703
1
01-03-2020 08:09 AM
by Anonymous User
Not applicable

I have 150 mxd's which some layers come from the following ArcGIS REST Services Directory: https://services.arcgis.com/JJzESW51TqeY9uat/ArcGIS/rest/services using urls. However, the urls has been updated causing the data link to break in each mxd. 


I was looking to make a python script script which I could update the existing layers with a new data source/url or to be able to add data from the ArcGIS REST Services Directory via python. Does anyone have any advice as I have tried to use the arcpy-mapping replace datasource function but have been unsuccessful? Any advice is much appreciated.

1 Reply
LindseyDanforth1
New Contributor

I am also interested in a solution to this. Right now I am just removing the layers entirely and replacing with the new URL's via Layer Files. Not prefect but it gets the job done.

0 Kudos