[GIS] Seeking ArcGIS Pro tool to batch change data sources

arcgis-prodata-source

ArcCatalog has a useful Set Data Source tool which allows for rapidly updating multiple data sources in a map document that have changed.

Is there a similar functionality in ArcGIS Pro for project files, or within a project?

I can presumably also script a solution like Repairing data sources in multiple MXDs using ArcPy?, but not all our team members have the same skill level.

Best Answer

You can do this with ArcPy and a few lines of code.

import arcpy
aprx = arcpy.mp.ArcGISProject(r'C:\Projects\YosemiteNP\Yosemite.aprx')
aprx.updateConnectionProperties(r'C:\Projects\YosemiteNP\Data\Yosemite.gdb',
                                r'C:\Projects\YosemiteNP\Vector_Data\Yosemite.gdb')
aprx.save()

The code above is from Updating and Fixing Datasets.

Related Question