OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

Exception when creating a chart via api

Open paveltashkinovuc opened this issue 1 year ago • 1 comments

Hello everyone. I am trying to create a chart using the following json via API: { "chartType": "Line" ,"dataProducts": ["test_prod"] ,"description": "dgd2" ,"displayName": "disp_nm2" ,"domain": "Data_Platform" ,"name": "somename" ,"service": "Superset" } It throws an exception: An exception with message [Entity type chart 608b2781-1839-4741-a9f6-604aa465e0e2 does not have expected relationship contains to/from entity type null] was thrown while processing request." What has gone wrong? What's the entity type null and what's the relationship between the chart and the said type?

image

paveltashkinovuc avatar Feb 15 '24 10:02 paveltashkinovuc

When creating a Chart through the API with dataProducts and exception is thrown because we are not fetching the dataProduct information in the backend.

When trying to create the Chart Entity, the DataProduct ID is null and 💥

We are not entirely sure if it only happens with Charts since we haven't tested other entities. It'd be a good idea to check if it's working on the rest while solving this issue.

IceS2 avatar Feb 15 '24 11:02 IceS2

this has been fixed here

mohityadav766 avatar Mar 22 '24 11:03 mohityadav766