im using a mix of GraphQL and datahubGraph to quer...
# troubleshoot
b
im using a mix of GraphQL and datahubGraph to query and archive implemented policies on my instance. I wanted to archive my implemented policies. I noticed that when using:
Copy code
policy = graph.get_aspect_v2(
  entity_urn=policy_urn,
  aspect = "dataHubPolicyInfo",
  aspect_type=DataHubPolicyInfoClass
)
I will inevitably encounter an AvroException: ('Datum union type not in schema %s', 'filter') for policies that are created in UI and have a filter condition. (and 1st time created without edits) It is somehow resolved if i add more entities to the filter, then reverting to the original filter. Not sure why it is happening.