ArcGIS pro 3.3.1 here I have a map with some group layers. Inside the group layers there are layers pointing to two different filegeodatabase. I need to update one on the fgdbs (the old database) for the entire map and leave the other (otherdatabase) one intact.
The problem I am trying to use updateConnectionProperties with the old and the new fgdb but the problem is as soon as a layer where the source is the fgdb I am NOT updating, it stops updating the layers below. So it will do the first few layers then stop and leave the ones at the bottom with the original database. If I take the layers out of group or if I place the ones that I am not changing below, it works. Changing the order is not practical. The schema of the old and the new database is identical. The other database is different. Everything is on the local workstation.
aprx = arcpy.mp.ArcGISProject('CURRENT')
mymap = aprx.activeMap
mymap.updateConnectionProperties(current_connection_info=r'C:\oldpath\database.gdb', new_connection_info=r'C:\newpath\database.gdb', ignore_case=True)
