Hello one more error Parameters of method 'inges...
# troubleshoot
c
Hello one more error Parameters of method 'ingest' failed validation with error 'ERROR :: /entity/value/com.linkedin.metadata.snapshot.DatasetSnapshot/aspects/0 :: \"DatasetUpstreamLineage\" is not a member type of union
curl 'http://localhost:8080/entities?action=ingest' -X POST --data '{ "entity": { "value": { "com.linkedin.metadata.snapshot.DatasetSnapshot": { "urn": "urnlidataset:(urnlidataPlatform:foo_sex2,PROD)", "aspects": [ { "DatasetUpstreamLineage": { "fieldMappings": [ { "created": null, "transformationFunction": { "string": "com.linkedin.finegrainedmetadata.transformation.Identity" }, "sourceFields": [ { "string": "urnlidatasetField:(urnlidataset:(urnlidataset:(urnlidataPlatform:foo,bar,PROD),/foo)" } ], "destinationField": "urnlidatasetField:(urnlidataset:(urnlidataset:(urnlidataPlatform:foo,bar_sex,PROD),/foo)" } ] } }, ] } } } }'
try curl 'http://localhost:8080/entities?action=ingest' -X POST --data '{ "entity":{ "value":{ "com.linkedin.metadata.snapshot.DatasetSnapshot":{ "urn":"urnlidataset:(urnlidataPlatform:foo,bar10,PROD)", "aspects":[ { "com.linkedin.common.Ownership":{ "owners":[ { "owner":"urnlicorpuser:fbar", "type":"DATAOWNER" } ] } }, { "com.linkedin.common.DatasetUpstreamLineage":{ "fieldMappings": [ { "created": null, "transformationFunction": { "string": "com.linkedin.finegrainedmetadata.transformation.Identity" }, "sourceFields": [ { "string": "urnlidatasetField:(urnlidataset:(urnlidataPlatform:foo,bar,PROD),/foo)" } ], "destinationField": "urnlidatasetField:(urnlidataset:(urnlidataPlatform:foo,bar_sex,PROD),/foo)" } ] } } ] } } } }'
h
hey, I believe you need to use dataset's upstreamLineage aspect instead. Also its recommended to use aspects ingest endpoint over entities ingest endpoint.