After a Stop and Resume operation on a Qlik Replicate Log Stream task with an IBM Db2 for i source, a subset of tables begins receiving NULL values in the RRN column.
When RRN is configured as the primary key for those tables, downstream merge processes fail with errors similar to:
DML operation to table DB2I_TABLE failed on column RRN with error: NULL result in a non-nullable column
Environment
Qlik Replicate
Resolution
Confirm that the Log Stream parent task's source endpoint is configured with Add RRN column to tables without a Primary Key or Unique Index rather than Add RRN column to all tables. This mismatch is the source of the NULL RRN values.
Because the parent task is current, and changing the endpoint setting would affect every table in the task, remove the affected tables from the existing parent/child task set.
Create a new source endpoint with Add RRN column to all tables enabled.
Create a new parent task using the new endpoint.
Create corresponding child tasks targeting the same Snowflake target tables.
Reload the affected tables within the new task to re-establish correct RRN population.
Confirm that data flows correctly, and that RRN values are no longer NULL.
Cause
The Log Stream parent task's source endpoint has the RRN setting configured as Add RRN column to tables without a Primary Key or Unique Index, instead of Add RRN column to all tables.
This misconfiguration causes RRN values to be NULL for the tables processed by the affected parent task, while other parent tasks with the correct setting continue to populate RRN correctly.