<?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>topic Re: streamPosition, change lsn, commit lsn in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/streamPosition-change-lsn-commit-lsn/m-p/1779148#M733</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/133210" target="_blank"&gt;@rsbothwell&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You can use&amp;nbsp;&lt;SPAN&gt;streamPosition&amp;nbsp; to eliminate duplicate messages. I'm sorry for the delay.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Feb 2021 00:57:19 GMT</pubDate>
    <dc:creator>john_wang</dc:creator>
    <dc:date>2021-02-02T00:57:19Z</dc:date>
    <item>
      <title>streamPosition, change lsn, commit lsn</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/streamPosition-change-lsn-commit-lsn/m-p/1775384#M710</link>
      <description>&lt;P&gt;We are converting from debezium to qlik replicate. Two fields debezium give us are:&lt;/P&gt;&lt;P&gt;"__source_change_lsn": {&lt;BR /&gt;"string": "008da661:000ec9ed:0002"&lt;BR /&gt;},&lt;BR /&gt;"__source_commit_lsn": {&lt;BR /&gt;"string": "008da661:000ec9ed:002b"&lt;BR /&gt;},&lt;/P&gt;&lt;P&gt;It appears that one of these represents the Qlik message field "streamPosition", but we are having trouble getting the other.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 18:46:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/streamPosition-change-lsn-commit-lsn/m-p/1775384#M710</guid>
      <dc:creator>rsbothwell</dc:creator>
      <dc:date>2021-01-18T18:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: streamPosition, change lsn, commit lsn</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/streamPosition-change-lsn-commit-lsn/m-p/1776530#M720</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/133210"&gt;@rsbothwell&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for choosing Qlik Replicate.&lt;/P&gt;&lt;P&gt;From the LSN format I'm supposing your source is SQL Server, and your target is Kafka. We are discussing your question based on above endpoints.&lt;/P&gt;&lt;P&gt;In Qlik Replicate there is not the exact same two fields like Debezium although&amp;nbsp;&lt;SPAN&gt;streamPosition is a similar one. In Replicate header fields there are another 2 similar fields TIMESTAMP and COMMIT_TIMESTAMP which are UTC format timestamp of the source change events and the transaction commit timestamp. In general the LSN and the UTC timestamp can be converted to each other as they have 1 to 1 mapping releationship, however it's not recommended to do such conversion in Kafka solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So the most important thing is why you need the 2 fields? if you want to sort the source change events then in Replicate there are 2 options:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. One source tables changes write to a single given partition of a topic - Kafka guarantee the order of the changes whithin the partition however it's not the best approach in performance point of view.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Your app to sort the changes&amp;nbsp; by streamPosition and OPERATION fields while consuming the messages.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 00:46:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/streamPosition-change-lsn-commit-lsn/m-p/1776530#M720</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2021-01-22T00:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: streamPosition, change lsn, commit lsn</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/streamPosition-change-lsn-commit-lsn/m-p/1776748#M726</link>
      <description>&lt;P&gt;Hi John, &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115309"&gt;@john_wang&lt;/a&gt;&amp;nbsp;, thanks for the reply. Debezium can emit duplicate messages. We are using the _lsn's to merge duplicates. We were looking at using transactionId as a substitute for commit_lsn. From what you are saying we can use TIMESTAMP? We don't have COMMIT_TIMESTAMP in our metadata:&lt;/P&gt;&lt;P&gt;"fields": [{&lt;BR /&gt;"name": "operation",&lt;BR /&gt;"type": {&lt;BR /&gt;"type": "enum",&lt;BR /&gt;"name": "operation",&lt;BR /&gt;"symbols": ["INSERT", "UPDATE", "DELETE", "REFRESH"]&lt;BR /&gt;}&lt;BR /&gt;}, {&lt;BR /&gt;"name": "changeSequence",&lt;BR /&gt;"type": "string"&lt;BR /&gt;}, {&lt;BR /&gt;"name": "timestamp",&lt;BR /&gt;"type": "string"&lt;BR /&gt;}, {&lt;BR /&gt;"name": "streamPosition",&lt;BR /&gt;"type": "string"&lt;BR /&gt;}, {&lt;BR /&gt;"name": "transactionId",&lt;BR /&gt;"type": "string"&lt;BR /&gt;}, {&lt;BR /&gt;"name": "changeMask",&lt;BR /&gt;"type": ["null", "bytes"],&lt;BR /&gt;"default": null&lt;BR /&gt;}, {&lt;BR /&gt;"name": "columnMask",&lt;BR /&gt;"type": ["null", "bytes"],&lt;BR /&gt;"default": null&lt;BR /&gt;}, {&lt;BR /&gt;"name": "transactionEventCounter",&lt;BR /&gt;"type": ["null", "long"],&lt;BR /&gt;"default": null&lt;BR /&gt;}, {&lt;BR /&gt;"name": "transactionLastEvent",&lt;BR /&gt;"type": ["null", "boolean"],&lt;BR /&gt;"default": null&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 15:05:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/streamPosition-change-lsn-commit-lsn/m-p/1776748#M726</guid>
      <dc:creator>rsbothwell</dc:creator>
      <dc:date>2021-01-22T15:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: streamPosition, change lsn, commit lsn</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/streamPosition-change-lsn-commit-lsn/m-p/1779148#M733</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/133210" target="_blank"&gt;@rsbothwell&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You can use&amp;nbsp;&lt;SPAN&gt;streamPosition&amp;nbsp; to eliminate duplicate messages. I'm sorry for the delay.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 00:57:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/streamPosition-change-lsn-commit-lsn/m-p/1779148#M733</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2021-02-02T00:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: streamPosition, change lsn, commit lsn</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/streamPosition-change-lsn-commit-lsn/m-p/2518756#M14406</link>
      <description>&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;I hope you are doing well. Is there a recommended part of the Streamposition value on which to use to sort the records in sequence?&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;3332;637844887646504050;20210612080418483693|00000005.8058fbb7.00000001.0002.01.0000:184334.179713.16&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that the SCN can be obtained by converting the hexadecimal value of "000000058058fbb7" into a decimal, then sorting. However this might be a bit inconvenient for use as it needs to be converted to decimal first.&lt;/P&gt;&lt;P&gt;I noticed that the 2nd part of the column looks to be unique and in the correct sequence: 637844887646504050. Can this be used for sequencing the correct order of changes as they occurred exactly on the source? If not, which part of the streamposition column does Qlik recommend to use for sorting? Thank you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohammed&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 00:48:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/streamPosition-change-lsn-commit-lsn/m-p/2518756#M14406</guid>
      <dc:creator>MoeE</dc:creator>
      <dc:date>2025-05-23T00:48:10Z</dc:date>
    </item>
  </channel>
</rss>

