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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
NakulanR
Partner - Creator
Partner - Creator

Populating the 'timestamp' column in a Kafka data message during Full Load

Hi Support,

 

When a Replicate task writes to Kafka, the data message contains a column called 'timestamp'. As per the Replicate User guide, the column gets populated with the original change timestamp and is only relevant for CDC operations. 

Is there anything in the task settings, Kafka endpoint internal parameters or Replicate configuration file which allows for that 'timestamp' column to be populated during the full load, such that the value reflects the time at which data was loaded into Kafka?

 

Thanks,

Nak

Labels (2)
1 Solution

Accepted Solutions
john_wang
Support
Support

Hi Nak, @NakulanR 

I hope this message finds you well.

In the task configuration, the "timestamp" column has been enabled for inclusion in the Kafka messages. However, its value appears to be empty for records processed during the Full Load phase.

john_wang_0-1751012947234.png

 

As far as I can tell, there is no built-in parameter to automatically populate this field (e.g., with the current timestamp) during Full Load.

A possible workaround is to add a transformation column, for example, named "ts", using the following expression:

strftime('%Y-%m-%d %H:%M:%f', 'now', 'localtime')

john_wang_1-1751012970638.png

Please note that this field will be included in the data section of the Kafka message, not in the headers section, as shown below:

john_wang_2-1751013140361.png

If you would like this value to appear in the headers section, you are welcome to submit a Feature Request for consideration in a future release.

Regards,

John.

 

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!

View solution in original post

2 Replies
SushilKumar
Support
Support

Hello @NakulanR 

Full load. Done having the Timestamp ID because of the way it functions. AS a full load, create a table along with metadata and sequentially perform an insert. However CDC have a timestamp at the because they have timestamp/Checkpoint attached to it. its the way it works.

Regards,
Sushil Kumar 

john_wang
Support
Support

Hi Nak, @NakulanR 

I hope this message finds you well.

In the task configuration, the "timestamp" column has been enabled for inclusion in the Kafka messages. However, its value appears to be empty for records processed during the Full Load phase.

john_wang_0-1751012947234.png

 

As far as I can tell, there is no built-in parameter to automatically populate this field (e.g., with the current timestamp) during Full Load.

A possible workaround is to add a transformation column, for example, named "ts", using the following expression:

strftime('%Y-%m-%d %H:%M:%f', 'now', 'localtime')

john_wang_1-1751012970638.png

Please note that this field will be included in the data section of the Kafka message, not in the headers section, as shown below:

john_wang_2-1751013140361.png

If you would like this value to appear in the headers section, you are welcome to submit a Feature Request for consideration in a future release.

Regards,

John.

 

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!