Hi,
I've encountered an issue in ArcGIS Pro 3, when using arcpy.da.Describe on layers (.lyr/.lyrx) that contain a group layers, it causes a hard crash in ArcGIS Pro 3.
If running the same script outside of Pro the script will just terminate. I can't catch the error with try/except either.
No issues with layer files containing a single layer.
The issue doesn't occur using arcpy.Describe, but that's not as useful as a dictionary. I've modified my code to handle things differently for layers and maps, but thought it worth reporting this error.
import arcpy
lyr = r"c:\temp\group_layer.lyrx"
desc = arcpy.Describe( lyr )
desc.dataElement.name
>>> group_layer.lyrx
# Hard crash here...
desc = arcpy.da.Describe( lyr )