Hi, team. I use transformer for owenership in yaml...
# troubleshoot
l
Hi, team. I use transformer for owenership in yaml like
Copy code
transformers:
  - type: "simple_add_dataset_ownership"
    config:
      owner_urns:
        - "urn:li:corpGroup:edwh"
      ownership_type: "TECHNICAL_OWNER"
and after last upgrading datahub (v0.8.44) I see errors like
[2022-09-12, 07:08:52 UTC] {process_utils.py:173} INFO - [[34m2022-09-12, 07:08:52 UTC[0m] {[34mpipeline.py:[0m57} ERROR[0m -  failed to write record with workunit txform-urn:li:dataPlatform:postgres-edwh.raw_tn_marketing.t_customer-TEST-ownership with ('Unable to emit metadata to DataHub GMS', {'exceptionClass': 'com.linkedin.restli.server.RestLiServiceException', 'stackTrace': 'com.linkedin.restli.server.RestLiServiceException [HTTP Status:422]: Failed to validate record with class com.linkedin.common.Ownership: ERROR :: /lastModified/actor :: "Provided urn " is invalid\n\n\tat com.linkedin.metadata.resources.entity.AspectResource.lambda$ingestProposal$3(AspectResource.java:149)', 'message': 'Failed to validate record with class com.linkedin.common.Ownership: ERROR :: /lastModified/actor :: "Provided urn " is invalid', 'status': 422}) and info {'exceptionClass': 'com.linkedin.restli.server.RestLiServiceException', 'stackTrace': 'com.linkedin.restli.server.RestLiServiceException [HTTP Status:422]: Failed to validate record with class com.linkedin.common.Ownership: ERROR :: /lastModified/actor :: "Provided urn " is invalid\n\n\tat com.linkedin.metadata.resources.entity.AspectResource.lambda$ingestProposal$3(AspectResource.java:149)', 'message': 'Failed to validate record with class com.linkedin.common.Ownership: ERROR :: /lastModified/actor :: "Provided urn " is invalid', 'status': 422}[0m
Is it bug or not?
h
Hi @late-rocket-94535 I am looking into this. will get back shortly.
Hey, I could reproduce this bug locally. I have raised a PR to fix this issue - https://github.com/datahub-project/datahub/pull/5906 .
l
Thank you!