Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Product Creation Fails When Domain is Not Specified Due to Pydantic Treating it as None #20112

Closed
Prajwal214 opened this issue Mar 6, 2025 · 0 comments · Fixed by #20182
Assignees
Labels
bug Something isn't working customer

Comments

@Prajwal214
Copy link
Contributor

Affected module
Does it impact the UI, backend or Ingestion Framework?
-- Backend

Describe the bug
A clear and concise description of what the bug is.
-- While creating Data Product using SDK, when domain field is not specified it is getting created as Pydantic is considering the domain as None. Domain should be required for Data Product to be created.

{
  "responseMessage" : "An exception with message [Cannot invoke \"org.openmetadata.schema.type.EntityReference.getId()\" because the return value of \"org.openmetadata.schema.entity.domains.DataProduct.getDomain()\" is null] was thrown while processing request.",
  "errorType" : "UNHANDLED_SERVER_EXCEPTION"
}

We would also need a example for creating Data Product in the example_apis.py

To Reproduce

Screenshots or steps to reproduce

Expected behavior
A clear and concise description of what you expected to happen.

Version:

  • OS: [e.g. iOS]
  • Python version:
  • OpenMetadata version: [e.g. 0.8]
  • OpenMetadata Ingestion package version: [e.g. openmetadata-ingestion[docker]==XYZ]

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working customer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants