Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates

Qlik Replicate and Confluent Kafka Target (AVRO): Rows With the Same Primary Key Route to Different Partitions

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Steve_Nguyen
Support
Support

Qlik Replicate and Confluent Kafka Target (AVRO): Rows With the Same Primary Key Route to Different Partitions

Last Update:

Oct 29, 2026 2:29:07 AM

Updated By:

Sonja_Bauernfeind

Created date:

Oct 29, 2026 2:29:07 AM

While using the AVRO message format and a partition-by-primary-key, Qlik Replicate tasks that replicate from IBM Db2 for i to a Confluent Kafka target route rows from different tables sharing the same primary key value to different Kafka partitions. 

The expected behavior is that a custom primary key column, defined identically across all tables, produces the same AVRO key message, causing Kafka to route all matching rows to the same partition. The observed behavior is that the same key value in two different tables lands in different partitions.

Environment

  • Qlik Replicate

 

Resolution

Option 1: Use the enableNamespaces internal parameter

  1. In the Qlik Replicate task, go to the target endpoint Advanced settings.
  2. Add the internal parameter enableNamespaces, and set its value to false.
  3. Save the endpoint setting, and resume the task.

Note: Setting enableNamespaces to false removes the namespace from both the key message schema and the value (data record) message schema.

Option 2: Edit the message format namespace directly

  1. In the task settings, open the Message Format configuration for the AVRO key.
  2. Remove TARGET_TABLE_NAME from the namespace definition. If the tables belong to different owners, also remove TARGET_TABLE_OWNER. If the tables are split across multiple tasks, also remove TASK_NAME.
  3. Make sure the resulting namespace is identical for all tables that must share the same partition.
  4. Save the task settings, and resume the task.

 

Cause

When producing AVRO messages, Qlik Replicate includes the table namespace in the AVRO key message schema. Because the namespace contains the table name (and, optionally, the table owner and task name), two tables with the same primary key value produce two different AVRO key schemas. Kafka's partitioning logic treats these as distinct keys, and routes them to different partitions, even though the key values are identical.

 

Internal Investigation ID(s)

SUPPORT-10509

 

Labels (2)
Version history
Last update:
3 weeks ago
Updated by: