Bug: 500 error when saving "Related Terms" on a Glossary Term (Unrecognized field "id" in TermRelation)
Affected module
Governance (Glossary / Classification / Domains)
Describe the bug
Describe the bug
Adding a "Related Term" to a Glossary Term and clicking Save fails silently in the UI (no error toast), but the backend returns a 500 error. The server log shows a Jackson deserialization error caused by an unrecognized "id" field being sent in the TermRelation object, which only supports "term" and "relationType" according to the schema.
Server-side error (from openmetadata server logs)
``` Caused by: java.lang.IllegalArgumentException: Unrecognized field "id" (class org.openmetadata.schema.type.TermRelation), not marked as ignorable (2 known properties: "term", "relationType"]) at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: org.openmetadata.schema.entity.data.GlossaryTerm["relatedTerms"]->java.util.ArrayList[0]->org.openmetadata.schema.type.TermRelation["id"]) at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:4652) at com.fasterxml.jackson.databind.ObjectMapper.convertValue(ObjectMapper.java:4583) at org.openmetadata.schema.utils.JsonUtils.applyPatch(JsonUtils.java:424) ```
Browser console error
``` AxiosError: Request failed with status code 500 PATCH /api/v1/glossaryTerms/{id} — 500 ```
Environment
- OpenMetadata version: 1.13.1.1 (chart 1.13.1, latest available)
- Deployment: Kubernetes, Helm chart
open-metadata/openmetadata - MySQL backend, OpenSearch for search
- Browser: Chrome
To Reproduce
To Reproduce
- Create a Glossary with at least two Terms (e.g., "Client" and "Location")
- Open Term "Client" → Edit
- In "Termes Liés" / "Related Terms", search for "Location" and select it from the dropdown
- Click "Enregistrer" / "Save"
- Nothing visibly happens in the UI, but a PATCH request to
/api/v1/glossaryTerms/{id}returns 500
Expected behavior
Expected behavior
The related term should be saved successfully, or the UI should surface the error.
OS
Linux (Ubuntu 24.04, Kubernetes)
Python version
N/A
OpenMetadata version
1.13.1.1
OpenMetadata Ingestion package version
1.13.1
Additional context
Additional context
This appears related to the relatedTerms → typed TermRelation migration introduced in 1.13.0 (relatedTerms changed from simple references to typed objects with "term" and "relationType"). The frontend seems to still send an extra "id" field that the backend's TermRelation schema doesn't recognize.
Pre-submission checklist
- [x] I searched for duplicate issues.
- [x] I removed credentials, hostnames, emails, and other sensitive data from logs and config.
Hi, thanks for reporting this!
This issue has already been fixed. Fix PRs: #26586 — Cleans up stale data from entity JSON (included in 1.13.0+) #27770 — Extends the fix to version history snapshots (included in 1.13.2+) Since you’re on 1.13.1.1, these fixes should already be applied. If you’re still hitting this, it’s likely the migration didn’t run successfully during your upgrade. You can verify by checking the SERVER_CHANGE_LOG table for a completed 1.13.0 entry. If the issue persists, upgrading to 1.13.2+ or later should fully resolve it.