I have this in Python:
workspace = r'Database Connections\XXX.sde'
rc_list = [c.name for c in arcpy.Describe(workspace).children if c.datatype == "RelationshipClass"]
Which should give me all the relationship classes at the root of my SDE database, and I have many! However, rc_list comes up empty every single time. Works for a FGDB, does not work for SDE. I have tossed every permutation of the SDE connection workspace path at this, and nothing works. The other workspace properties like server, instance, connectionString all get returned every time, but the children are blank.
Am I missing something? This is the only way I know to grab all the relationship classes at the root, so I am puzzled as to why it finds nothing.