<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Qlik Replicate and Kafka target: How to add tables name in Kafka message in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-and-Kafka-target-How-to-add-tables-name-in-Kafka/ta-p/2115290</link>
    <description>&lt;P&gt;&lt;SPAN&gt;When using&amp;nbsp;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Kafka&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;as a target in a Qlik Replicate task, the source table's "&lt;FONT face="courier new,courier"&gt;Schema Name&lt;/FONT&gt;" &amp;amp; "&lt;FONT face="courier new,courier"&gt;Table Name&lt;/FONT&gt;" are not included in the Kafka message, this is the default behavior.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;In some scenarios, you may want to add some additional information into the Kafka messages.&lt;/P&gt;
&lt;P&gt;In this article, we will summarize all available options and weigh out the pros/cons between the different options. We use the "&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;Table Name&lt;/FONT&gt;&lt;/SPAN&gt;" as an example in below alternatives&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Table Settings&lt;FONT size="4"&gt;&amp;nbsp; →&amp;nbsp;&lt;/FONT&gt;Transform&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Global Rules&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT size="4"&gt;→&amp;nbsp;&lt;/FONT&gt;Transformation&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Table Settings&lt;FONT size="4"&gt;&amp;nbsp;→&amp;nbsp;&lt;/FONT&gt;Message Format&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Task Settings&lt;FONT size="4"&gt;&amp;nbsp; &amp;nbsp;→&amp;nbsp;&lt;/FONT&gt;Message Format&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 id="toc-hId--525314414"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT size="5"&gt;Table Settings&amp;nbsp; →&amp;nbsp;Transform&lt;/FONT&gt;&lt;BR /&gt;
&lt;DIV id="tinyMceEditorjohn_wang_3" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;SPAN&gt;&amp;nbsp;We may add a column eg "tableName" in table settings output columns as below:&lt;/SPAN&gt;
&lt;DIV id="tinyMceEditorjohn_wang_3" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_4-1694402753717.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115964iA8EDAAC3FFFFD229/image-size/medium?v=v2&amp;amp;px=400" role="button" title="john_wang_4-1694402753717.png" alt="john_wang_4-1694402753717.png" /&gt;&lt;/span&gt;
&lt;P&gt;Cons:&lt;BR /&gt;-- No variable is available, so it's not dynamic value but a fixed string. In our sample the expression string is&amp;nbsp;&lt;FONT face="courier new,courier"&gt;'kit'&lt;/FONT&gt;&lt;BR /&gt;-- Affects the single table only&lt;BR /&gt;-- The table name appears in message's &lt;STRONG&gt;data&lt;/STRONG&gt; part (rather than &lt;STRONG&gt;headers&lt;/STRONG&gt; part)&lt;/P&gt;
&lt;TABLE style="border-style: none; width: 100%; background-color: lightgrey;" border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "magic": "atMSG",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "type": "DT",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "headers": null,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "messageSchemaId": null,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "messageSchema": null,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "message": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "&lt;EM&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/EM&gt;": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "ID": "2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "NAME": "test Kafka",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;"tableName": "kit"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; },&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "beforeData": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "ID": "2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "NAME": "ok",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "tableName": "kit"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; },&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "&lt;EM&gt;&lt;STRONG&gt;headers&lt;/STRONG&gt;&lt;/EM&gt;": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "operation": "UPDATE",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "changeSequence": "20230911032325000000000000000000005",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "timestamp": "2023-09-11T03:23:25.000",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "streamPosition": "00000000.00bb2531.00000001.0000.02.0000:154.6963.16",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "transactionId": "00000000000000000000000000060008",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "changeMask": "02",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "columnMask": "07",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "transactionEventCounter": 1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "transactionLastEvent": true&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="5"&gt;Global Rules&amp;nbsp; &amp;nbsp; &amp;nbsp;→&amp;nbsp;Transformation&lt;/FONT&gt;&lt;BR /&gt;
&lt;P&gt;Global Rules can be used to add table name column to all the tables messages&lt;/P&gt;
&lt;DIV id="tinyMceEditorjohn_wang_3" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_6-1694403818259.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115966i15E9AE8B5BB07A13/image-size/medium?v=v2&amp;amp;px=400" role="button" title="john_wang_6-1694403818259.png" alt="john_wang_6-1694403818259.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;Prons:&lt;BR /&gt;-- Affects all the tables&lt;BR /&gt;-- Variables are available, in our sample the variable &lt;FONT face="courier new,courier"&gt;$AR_M_SOURCE_TABLE_NAME&lt;/FONT&gt; is used.&lt;BR /&gt;-- The table name can be customized by combining with other transformation eg adding suffix expression "__QA"&lt;BR /&gt;Cons:&lt;BR /&gt;-- The table name appears in message's &lt;STRONG&gt;data&lt;/STRONG&gt; part (rather than &lt;STRONG&gt;headers&lt;/STRONG&gt; part)&lt;BR /&gt;If both tables transform and global rules transformation are defined (and their values are different) then tables level transform overwrites the global transformation settings.&lt;/P&gt;
&lt;TABLE style="border-style: none; width: 100%; background-color: lightgrey;" border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "magic": "atMSG",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "type": "DT",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "headers": null,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "messageSchemaId": null,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "messageSchema": null,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "message": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "&lt;EM&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/EM&gt;": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "ID": "2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "NAME": "test Kafka 2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &lt;STRONG&gt;"tableName": "KIT"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; },&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "beforeData": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "ID": "2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "NAME": "test Kafka",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "tableName": "KIT"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; },&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "&lt;EM&gt;&lt;STRONG&gt;headers&lt;/STRONG&gt;&lt;/EM&gt;": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "operation": "UPDATE",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "changeSequence": "20230911034827000000000000000000005",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "timestamp": "2023-09-11T03:48:27.000",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "streamPosition": "00000000.00bb28db.00000001.0000.02.0000:154.7632.16",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "transactionId": "00000000000000000000000000170006",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "changeMask": "02",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "columnMask": "07",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "transactionEventCounter": 1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "transactionLastEvent": true&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="5"&gt;Table Settings&amp;nbsp;→&amp;nbsp;Message Format&lt;/FONT&gt;&lt;BR /&gt;
&lt;P&gt;Enable the "&lt;FONT face="courier new,courier"&gt;Table Name&lt;/FONT&gt;"&amp;nbsp; option will include the header information in Kafka messages.&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_7-1694405246814.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115967i0314C253CA9C5CF8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="john_wang_7-1694405246814.png" alt="john_wang_7-1694405246814.png" /&gt;&lt;/span&gt;
&lt;P&gt;Cons:&lt;BR /&gt;-- Affects the single table only&lt;BR /&gt;Prons:&lt;BR /&gt;-- This new feature was released in Replicate 2023.5 and above versions&lt;BR /&gt;-- The table name appears in message's &lt;STRONG&gt;headers&lt;/STRONG&gt;&amp;nbsp;part (rather than &lt;STRONG&gt;data&amp;nbsp;&lt;/STRONG&gt;part)&lt;/P&gt;
&lt;TABLE style="border-style: none; width: 100%; background-color: lightgrey;" border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "magic": "atMSG",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "type": "DT",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "headers": null,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "messageSchemaId": null,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "messageSchema": null,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "message": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "&lt;EM&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/EM&gt;": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "ID": "2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "NAME": "test Kafka 3"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; },&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "beforeData": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "ID": "2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "NAME": "test Kafka 2"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; },&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "&lt;EM&gt;&lt;STRONG&gt;headers&lt;/STRONG&gt;&lt;/EM&gt;": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "operation": "UPDATE",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"changeSequence": "20230911041053000000000000000000005",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "timestamp": "2023-09-11T04:10:53.000",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "streamPosition": "00000000.00bb2c30.00000001.0000.02.0000:154.9378.16",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "transactionId": "00000000000000000000000000060005",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "changeMask": "02",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "columnMask": "03",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "transactionEventCounter": 1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "transactionLastEvent": true,&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "tableName": "KIT"&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="5"&gt;&amp;nbsp;Task Settings&amp;nbsp; &amp;nbsp;→&amp;nbsp;Message Format&lt;/FONT&gt;
&lt;P&gt;&amp;nbsp;Enable the "&lt;FONT face="courier new,courier"&gt;Table Name&lt;/FONT&gt;"&amp;nbsp; option will include the header information in Kafka messages.&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_8-1694406078922.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115968i3E63D553B64FBDA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="john_wang_8-1694406078922.png" alt="john_wang_8-1694406078922.png" /&gt;&lt;/span&gt;
&lt;P&gt;Prons:&lt;BR /&gt;-- Affects all the tables&lt;BR /&gt;-- This new feature was released in Replicate 2023.5 and above versions&lt;BR /&gt;-- The table name appears in message's &lt;STRONG&gt;headers&lt;/STRONG&gt;&amp;nbsp;part (rather than &lt;STRONG&gt;data&amp;nbsp;&lt;/STRONG&gt;part)&lt;BR /&gt;If both table level and task level "Message Format" are defined (and their values are different) then table level settings overwrites the task settings.&lt;/P&gt;
&lt;TABLE style="border-style: none; width: 100%; background-color: lightgrey;" border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "magic": "atMSG",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "type": "DT",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "headers": null,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "messageSchemaId": null,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "messageSchema": null,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "message": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "&lt;EM&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/EM&gt;": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "ID": "2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "NAME": "test Kafka 4"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; },&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "beforeData": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "ID": "2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "NAME": "test Kafka 3"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; },&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "&lt;EM&gt;&lt;STRONG&gt;headers&lt;/STRONG&gt;&lt;/EM&gt;": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "operation": "UPDATE",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "changeSequence": "20230911042445000000000000000000005",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "timestamp": "2023-09-11T04:24:45.000",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "streamPosition": "00000000.00bb2e56.00000001.0000.02.0000:154.9799.16",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "transactionId": "00000000000000000000000000080001",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "changeMask": "02",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "columnMask": "03",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "transactionEventCounter": 1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "transactionLastEvent": true,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;"tableName": "KIT"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;H3 id="toc-hId-1962198419"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;A id="hoverCardLink" class="lia-link-navigation lia-product-hover-card-link lia-product-mention lia-tooltip-trigger" href="https://community.qlik.com/t5/c-cyjdu72974/Qlik+Replicate/pd-p/qlikReplicate" target="_blank" rel="noopener"&gt;Qlik Replicate&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;(versions 2023.5 and above)&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;Kafka&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;target&lt;/P&gt;
&lt;H3 id="toc-hId--1665926177"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Related Content:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;A title="Suggestion Kafka JSON value contain schema. Table, scn, etc" href="https://community.qlik.com/t5/Suggest-an-Idea/Suggestion-Kafka-JSON-value-contain-schema-table-scn-etc/idi-p/1991125#:~:text=In%20the%20JSON%20value%2C%20it%20is%20Suggestion%20to%20include%20information%20such%20as%20SCHEMA.table%2C%20SCN%2C%20etc." target="_blank" rel="noopener"&gt;&amp;nbsp;Suggestion Kafka JSON value contain schema. Table, scn, etc&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2023 05:00:48 GMT</pubDate>
    <dc:creator>john_wang</dc:creator>
    <dc:date>2023-09-11T05:00:48Z</dc:date>
    <item>
      <title>Qlik Replicate and Kafka target: How to add tables name in Kafka message</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-and-Kafka-target-How-to-add-tables-name-in-Kafka/ta-p/2115290</link>
      <description>&lt;P&gt;&lt;SPAN&gt;When using&amp;nbsp;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Kafka&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;as a target in a Qlik Replicate task, the source table's "&lt;FONT face="courier new,courier"&gt;Schema Name&lt;/FONT&gt;" &amp;amp; "&lt;FONT face="courier new,courier"&gt;Table Name&lt;/FONT&gt;" are not included in the Kafka message, this is the default behavior.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;In some scenarios, you may want to add some additional information into the Kafka messages.&lt;/P&gt;
&lt;P&gt;In this article, we will summarize all available options and weigh out the pros/cons between the different options. We use the "&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;Table Name&lt;/FONT&gt;&lt;/SPAN&gt;" as an example in below alternatives&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Table Settings&lt;FONT size="4"&gt;&amp;nbsp; →&amp;nbsp;&lt;/FONT&gt;Transform&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Global Rules&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT size="4"&gt;→&amp;nbsp;&lt;/FONT&gt;Transformation&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Table Settings&lt;FONT size="4"&gt;&amp;nbsp;→&amp;nbsp;&lt;/FONT&gt;Message Format&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Task Settings&lt;FONT size="4"&gt;&amp;nbsp; &amp;nbsp;→&amp;nbsp;&lt;/FONT&gt;Message Format&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 id="toc-hId--525314414"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT size="5"&gt;Table Settings&amp;nbsp; →&amp;nbsp;Transform&lt;/FONT&gt;&lt;BR /&gt;
&lt;DIV id="tinyMceEditorjohn_wang_3" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;SPAN&gt;&amp;nbsp;We may add a column eg "tableName" in table settings output columns as below:&lt;/SPAN&gt;
&lt;DIV id="tinyMceEditorjohn_wang_3" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_4-1694402753717.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115964iA8EDAAC3FFFFD229/image-size/medium?v=v2&amp;amp;px=400" role="button" title="john_wang_4-1694402753717.png" alt="john_wang_4-1694402753717.png" /&gt;&lt;/span&gt;
&lt;P&gt;Cons:&lt;BR /&gt;-- No variable is available, so it's not dynamic value but a fixed string. In our sample the expression string is&amp;nbsp;&lt;FONT face="courier new,courier"&gt;'kit'&lt;/FONT&gt;&lt;BR /&gt;-- Affects the single table only&lt;BR /&gt;-- The table name appears in message's &lt;STRONG&gt;data&lt;/STRONG&gt; part (rather than &lt;STRONG&gt;headers&lt;/STRONG&gt; part)&lt;/P&gt;
&lt;TABLE style="border-style: none; width: 100%; background-color: lightgrey;" border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "magic": "atMSG",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "type": "DT",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "headers": null,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "messageSchemaId": null,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "messageSchema": null,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "message": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "&lt;EM&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/EM&gt;": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "ID": "2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "NAME": "test Kafka",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;"tableName": "kit"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; },&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "beforeData": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "ID": "2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "NAME": "ok",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "tableName": "kit"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; },&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "&lt;EM&gt;&lt;STRONG&gt;headers&lt;/STRONG&gt;&lt;/EM&gt;": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "operation": "UPDATE",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "changeSequence": "20230911032325000000000000000000005",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "timestamp": "2023-09-11T03:23:25.000",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "streamPosition": "00000000.00bb2531.00000001.0000.02.0000:154.6963.16",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "transactionId": "00000000000000000000000000060008",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "changeMask": "02",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "columnMask": "07",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "transactionEventCounter": 1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "transactionLastEvent": true&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="5"&gt;Global Rules&amp;nbsp; &amp;nbsp; &amp;nbsp;→&amp;nbsp;Transformation&lt;/FONT&gt;&lt;BR /&gt;
&lt;P&gt;Global Rules can be used to add table name column to all the tables messages&lt;/P&gt;
&lt;DIV id="tinyMceEditorjohn_wang_3" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_6-1694403818259.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115966i15E9AE8B5BB07A13/image-size/medium?v=v2&amp;amp;px=400" role="button" title="john_wang_6-1694403818259.png" alt="john_wang_6-1694403818259.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;Prons:&lt;BR /&gt;-- Affects all the tables&lt;BR /&gt;-- Variables are available, in our sample the variable &lt;FONT face="courier new,courier"&gt;$AR_M_SOURCE_TABLE_NAME&lt;/FONT&gt; is used.&lt;BR /&gt;-- The table name can be customized by combining with other transformation eg adding suffix expression "__QA"&lt;BR /&gt;Cons:&lt;BR /&gt;-- The table name appears in message's &lt;STRONG&gt;data&lt;/STRONG&gt; part (rather than &lt;STRONG&gt;headers&lt;/STRONG&gt; part)&lt;BR /&gt;If both tables transform and global rules transformation are defined (and their values are different) then tables level transform overwrites the global transformation settings.&lt;/P&gt;
&lt;TABLE style="border-style: none; width: 100%; background-color: lightgrey;" border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "magic": "atMSG",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "type": "DT",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "headers": null,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "messageSchemaId": null,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "messageSchema": null,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "message": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "&lt;EM&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/EM&gt;": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "ID": "2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "NAME": "test Kafka 2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &lt;STRONG&gt;"tableName": "KIT"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; },&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "beforeData": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "ID": "2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "NAME": "test Kafka",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "tableName": "KIT"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; },&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "&lt;EM&gt;&lt;STRONG&gt;headers&lt;/STRONG&gt;&lt;/EM&gt;": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "operation": "UPDATE",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "changeSequence": "20230911034827000000000000000000005",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "timestamp": "2023-09-11T03:48:27.000",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "streamPosition": "00000000.00bb28db.00000001.0000.02.0000:154.7632.16",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "transactionId": "00000000000000000000000000170006",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "changeMask": "02",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "columnMask": "07",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "transactionEventCounter": 1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "transactionLastEvent": true&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="5"&gt;Table Settings&amp;nbsp;→&amp;nbsp;Message Format&lt;/FONT&gt;&lt;BR /&gt;
&lt;P&gt;Enable the "&lt;FONT face="courier new,courier"&gt;Table Name&lt;/FONT&gt;"&amp;nbsp; option will include the header information in Kafka messages.&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_7-1694405246814.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115967i0314C253CA9C5CF8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="john_wang_7-1694405246814.png" alt="john_wang_7-1694405246814.png" /&gt;&lt;/span&gt;
&lt;P&gt;Cons:&lt;BR /&gt;-- Affects the single table only&lt;BR /&gt;Prons:&lt;BR /&gt;-- This new feature was released in Replicate 2023.5 and above versions&lt;BR /&gt;-- The table name appears in message's &lt;STRONG&gt;headers&lt;/STRONG&gt;&amp;nbsp;part (rather than &lt;STRONG&gt;data&amp;nbsp;&lt;/STRONG&gt;part)&lt;/P&gt;
&lt;TABLE style="border-style: none; width: 100%; background-color: lightgrey;" border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "magic": "atMSG",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "type": "DT",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "headers": null,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "messageSchemaId": null,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "messageSchema": null,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "message": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "&lt;EM&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/EM&gt;": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "ID": "2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "NAME": "test Kafka 3"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; },&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "beforeData": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "ID": "2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "NAME": "test Kafka 2"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; },&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "&lt;EM&gt;&lt;STRONG&gt;headers&lt;/STRONG&gt;&lt;/EM&gt;": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "operation": "UPDATE",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"changeSequence": "20230911041053000000000000000000005",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "timestamp": "2023-09-11T04:10:53.000",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "streamPosition": "00000000.00bb2c30.00000001.0000.02.0000:154.9378.16",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "transactionId": "00000000000000000000000000060005",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "changeMask": "02",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "columnMask": "03",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "transactionEventCounter": 1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "transactionLastEvent": true,&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "tableName": "KIT"&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="5"&gt;&amp;nbsp;Task Settings&amp;nbsp; &amp;nbsp;→&amp;nbsp;Message Format&lt;/FONT&gt;
&lt;P&gt;&amp;nbsp;Enable the "&lt;FONT face="courier new,courier"&gt;Table Name&lt;/FONT&gt;"&amp;nbsp; option will include the header information in Kafka messages.&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_8-1694406078922.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115968i3E63D553B64FBDA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="john_wang_8-1694406078922.png" alt="john_wang_8-1694406078922.png" /&gt;&lt;/span&gt;
&lt;P&gt;Prons:&lt;BR /&gt;-- Affects all the tables&lt;BR /&gt;-- This new feature was released in Replicate 2023.5 and above versions&lt;BR /&gt;-- The table name appears in message's &lt;STRONG&gt;headers&lt;/STRONG&gt;&amp;nbsp;part (rather than &lt;STRONG&gt;data&amp;nbsp;&lt;/STRONG&gt;part)&lt;BR /&gt;If both table level and task level "Message Format" are defined (and their values are different) then table level settings overwrites the task settings.&lt;/P&gt;
&lt;TABLE style="border-style: none; width: 100%; background-color: lightgrey;" border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "magic": "atMSG",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "type": "DT",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "headers": null,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "messageSchemaId": null,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "messageSchema": null,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "message": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "&lt;EM&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/EM&gt;": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "ID": "2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "NAME": "test Kafka 4"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; },&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "beforeData": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "ID": "2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "NAME": "test Kafka 3"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; },&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "&lt;EM&gt;&lt;STRONG&gt;headers&lt;/STRONG&gt;&lt;/EM&gt;": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "operation": "UPDATE",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "changeSequence": "20230911042445000000000000000000005",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "timestamp": "2023-09-11T04:24:45.000",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "streamPosition": "00000000.00bb2e56.00000001.0000.02.0000:154.9799.16",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "transactionId": "00000000000000000000000000080001",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "changeMask": "02",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "columnMask": "03",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "transactionEventCounter": 1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "transactionLastEvent": true,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;"tableName": "KIT"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;H3 id="toc-hId-1962198419"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;A id="hoverCardLink" class="lia-link-navigation lia-product-hover-card-link lia-product-mention lia-tooltip-trigger" href="https://community.qlik.com/t5/c-cyjdu72974/Qlik+Replicate/pd-p/qlikReplicate" target="_blank" rel="noopener"&gt;Qlik Replicate&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;(versions 2023.5 and above)&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;Kafka&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;target&lt;/P&gt;
&lt;H3 id="toc-hId--1665926177"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Related Content:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;A title="Suggestion Kafka JSON value contain schema. Table, scn, etc" href="https://community.qlik.com/t5/Suggest-an-Idea/Suggestion-Kafka-JSON-value-contain-schema-table-scn-etc/idi-p/1991125#:~:text=In%20the%20JSON%20value%2C%20it%20is%20Suggestion%20to%20include%20information%20such%20as%20SCHEMA.table%2C%20SCN%2C%20etc." target="_blank" rel="noopener"&gt;&amp;nbsp;Suggestion Kafka JSON value contain schema. Table, scn, etc&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 05:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-and-Kafka-target-How-to-add-tables-name-in-Kafka/ta-p/2115290</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2023-09-11T05:00:48Z</dc:date>
    </item>
  </channel>
</rss>

