Hello, I am implementing custom transformer based ...
# ingestion
d
Hello, I am implementing custom transformer based on the document: https://datahubproject.io/docs/metadata-ingestion/transformers#writing-a-custom-transformer-from-scratch After running the recipe file, I am getting the below error: “Failed to validate record with class com.linkedin.common.Ownership: ERROR :: /owners/0/owner :: “Provided urn “owners” is invalid” Here is my owners.json: { “owners”: [ { “owner”: “urnlicorpuser:mahbub” “type”: “DATAOWNER” } ] } Appreciate your response. Thanks, Mahbub
o
Based on your error your custom transformer is treating "owners" as the urn so instead you would want to either set up your json file as:
Copy code
{
"urn:li:corpuser:mahbub"
}
or change your transformer code to parse lower in the json object
h
The doc mentioned that owners.json file should look like the following: simply an array of owner urns.
Copy code
[
  "urn:li:corpuser:athos",
  "urn:li:corpuser:porthos",
  "urn:li:corpuser:aramis",
  "urn:li:corpGroup:the_three_musketeers"
]
d
Thanks!! I thought it was a working code with the provided sample. Apparently, I had to modify the code to parse the JSON and get the URN from inner layer.