AnsweredAssumed Answered

Cannot get children of workspace if ws is SDE

Question asked by trudnick on Feb 9, 2017
Latest reply on Feb 9, 2017 by bixb0012

I have this in Python:


workspace = r'Database Connections\XXX.sde'

rc_list = [ 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.