Prompt
schema registry compatibility error
Latest observation
Oct 24, 2026
OpenAI APIWeb search: off
A Schema Registry compatibility error usually means you tried to register a new schema version that is not allowed by the compatibility rules currently set for that subject.
Common causes
- You removed a field that existing data or consumers expect.
- You changed a field type incompatibly
- e.g.
int→string
- e.g.
- You changed a field from required to optional or vice versa in a way that breaks the configured compatibility mode.
- You renamed a field without using aliases.
- You changed the record name / namespace unexpectedly.
- You’re using a format-specific rule issue:
- Avro: missing defaults for new fields, incompatible type changes
- Protobuf: field number reuse, reserved fields, incompatible oneof changes
- JSON Schema: required properties / type changes
What to check
- Current compatibility setting
- Global or subject-level setting might be:
BACKWARDFORWARDFULLNONE
- Global or subject-level setting might be:
- Diff between old and new schema
- Look for removed/renamed fields or type changes.
- Subject name
- Make sure you’re registering under the expected subject, especially with:
TopicNameStrategyRecordNameStrategyTopicRecordNameStrategy
- Make sure you’re registering under the expected subject, especially with:
Typical fixes
- Add a default value for new Avro fields.
- Avoid changing field types unless compatible.
- Use aliases for renamed Avro fields.
- Keep old fields and deprecate them instead of removing immediately.
- If appropriate, adjust compatibility:
curl -X PUT http://<schema-registry>/config/<subject> \ -H "Content-Type: application/vnd.schemaregistry.v1+json" \ -d '{"compatibility":"BACKWARD"}' - If you must break compatibility, register a new subject or carefully manage versioning.
If you want, I can help debug it quickly
Paste:
- the error message
- the old schema
- the new schema
- the compatibility mode
- the schema type (Avro / Protobuf / JSON Schema)