I am trying to update the connection properties of a group layer onto a new geodatabase, and even though the script runs, the data sources end up being broken. I was wondering what I can do to fix this?
for lyr in group_layer:
      try:
        if lyr.supports("CONNECTIONPROPERTIES"😞
           #Update properties function
          lyr.updateConnectionProperties("", curr_gdb)
Â
This is what the data source is supposed to look like for the layer:
Â
However, even though it successfully updates connective properties to the certain geodatabase I want, this is what the data source looks like for the layer when I run the code: