I have to change the data source of all the layers of an ArcGIS Pro project map because of data migration from one sde to another sde. Is there any ArcGIS pro functionality to replace the data source of all the layers using one tool similar to ArcCatalog set data source functionality for .mxd?
Solved! Go to Solution.
As of 2025, ArcGIS Pro 3.4 now includes the "Right Click on broken layer > Data > Repair Data Source" in ArcMap for multiple layers:
While it's a relief to finally have this functionality, it's disappointing that Esri over 10 years to implement such a basic and essential feature in ArcGIS Pro. This capability has been a staple in ArcMap for over 15 years, and its absence in Pro has been a significant pain for many GIS professionals. The delay in adding this feature has forced users to resort to complex workarounds and Python scripting, wasting countless hours on what should have been a simple task.
https://pro.arcgis.com/en/pro-app/3.3/help/mapping/layer-properties/repair-broken-data-links.htm
New ESRI help doc for ArcGIS Pro: Updating and Fixing Data Sources
If updating the entire project, use the updateConnectionProperties on an ArcGISProject object.
If updating individual maps, then get your Map object and loop through the layers.
aprx = arcpy.mp.ArcGISProject(r'current')
my_map = aprx.listMaps('my map name')[0]
layers = individual_layers_map.listLayers()
for layer in layers:
# add if / else statements here if different layers have different sources
# e.g. if(layer.name == 'your layer name'): use SDE 1, else use SDE 2, etc.
layer.updateConnectionProperties(
current_connection_info = r'<path to current SDE>',
new_connection_info = r'<path to new SDE>'
)
Ah yes the ol' Pro "that one click in ArcMap is now a python science project" thing. Which also means everyone will do it slightly differently. Thakn you cjms though that is helpful. I just hope this can be made more point and click in a future update.
I don't see a Workspace button? Someone mentioned using Catalog View above. Looked for quite a while. Definitely used to be simple in ArcCatalog. (Change Data Sources)
Here is what I envision... it should be as simple as changing versions. Basically the same. Right click on a bunch of layers, say they are listed as Readonly @ Databasename. Right click and change it to ThisIsAnEditingUserConnection username and change it for all 25 layers at once. Basically under Change Version in the right-click menu, should be a Change User. Hopefully this gets fixed in the UI at some point.