Is there a way to generate (or access) a list of all data sources used in a ArcGIS Pro project?

I would like to avoid going through each layer's property dialog.

enter image description here

1 Answer 1


I found a solution using Python:

aprx = arcpy.mp.ArcGISProject("CURRENT")
maps = aprx.listMaps()
for map in maps:
    print ('--------------------------------------------------------------')
    print (map.name)
    print ('--------------------------------------------------------------')
    layers = map.listLayers()
    for layer in layers:
        if layer.supports('NAME') and layer.supports('LONGNAME') \
                    and layer.supports('DATASOURCE'):
            print (layer.longName + ' ---> ' + layer.dataSource)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.