<?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 How to transformation column auto increment  in target data in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/1730123#M349</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am looking for some help related to transformations.&amp;nbsp;&amp;nbsp;So i want to add more column in target data for field let say "transformid" and in this field i want to use Auto Increment so if there any insert in Source Data, the Target Data will count 1,2,3 etc&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone let me know if this is possible or not?&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;and if possible how do i build expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you&lt;/P&gt;&lt;P&gt;Dendy&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jul 2020 04:08:08 GMT</pubDate>
    <dc:creator>DendyLazuardi</dc:creator>
    <dc:date>2020-07-23T04:08:08Z</dc:date>
    <item>
      <title>How to transformation column auto increment  in target data</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/1730123#M349</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am looking for some help related to transformations.&amp;nbsp;&amp;nbsp;So i want to add more column in target data for field let say "transformid" and in this field i want to use Auto Increment so if there any insert in Source Data, the Target Data will count 1,2,3 etc&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone let me know if this is possible or not?&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;and if possible how do i build expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you&lt;/P&gt;&lt;P&gt;Dendy&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 04:08:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/1730123#M349</guid>
      <dc:creator>DendyLazuardi</dc:creator>
      <dc:date>2020-07-23T04:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to transformation column auto increment  in target data</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/1730144#M350</link>
      <description>&lt;P&gt;If all rows are to be unique then you could use rowno() to get a 1 for the first row, 2 for the second and so on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;LOAD&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp;RowNo() &lt;FONT color="#0000FF"&gt;as&lt;/FONT&gt; IncrementID,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp;FieldA,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp;FieldB,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp;Etc&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#0000FF"&gt;FROM&lt;/FONT&gt; [Source Data];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="2"&gt;Edit: I accidentally wrote RecNo() in my orignial script sample, I've changed it to RowNo(). RecNo() will give you the row number of the source table not the target table.&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 06:22:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/1730144#M350</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-07-23T06:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to transformation column auto increment  in target data</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/1730215#M351</link>
      <description>&lt;P&gt;Hello Dendy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you talking about Qlik Replicate transformation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's not difficult in Replicate but I think the best approach is using the database itself auto-increasing functionalities (auto-increasing columns in SQL Server, MySQL, or sequence column in Oracle etc...), the advantage of using DB's functions than using Qlik Replicate transformation are:&lt;BR /&gt;1. The task definition is simple and easy maintanence;&lt;BR /&gt;2. Gain better performance (you need not do the compute in Replicate and no unnecessary network taffic especailly for huge changes)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure if your target DB have such ability. If not we will try to find other options.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;thanks,&lt;/P&gt;&lt;P&gt;John WANG.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 10:20:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/1730215#M351</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2020-07-23T10:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to transformation column auto increment  in target data</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/1730491#M352</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/122700"&gt;@DendyLazuardi&lt;/a&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am sorry. I missed the detail that you where posting in the Qlik Replicate section. My suggestion above might not be a doable solution for you. It could however be useful when working with the QlikView /Qlik Sense script.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 05:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/1730491#M352</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-07-24T05:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to transformation column auto increment  in target data</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2128212#M7710</link>
      <description>&lt;P&gt;Hi john,&lt;/P&gt;
&lt;P&gt;So can we generate a sequence number within Qlik replicate?&lt;/P&gt;
&lt;P&gt;If yes,then can you show us?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Harsh&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 06:51:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2128212#M7710</guid>
      <dc:creator>harsh2</dc:creator>
      <dc:date>2023-10-13T06:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to transformation column auto increment  in target data</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2128215#M7712</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/213210"&gt;@harsh2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Personally, I do not think it's a good approach to generate such a sequence number by Qlik Replicate. It's much better if we can do that in target DB, the advantages are: &lt;STRONG&gt;easier&lt;/STRONG&gt; (need not complex expression in Replicate); &lt;STRONG&gt;faster&lt;/STRONG&gt; (need not transfer these information via network); &lt;STRONG&gt;stronger&lt;/STRONG&gt; (to avoid the duplicate number if any network error or other exceptions).&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 07:03:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2128215#M7712</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2023-10-13T07:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to transformation column auto increment  in target data</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2504076#M13622</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115309"&gt;@john_wang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am interested in this post, we have tried to add identity column on Azure SQL Server with configuration on column RECORD_ID BIGINT IDENTITY(1,1) NOT NULL, and it works as expected&lt;/P&gt;
&lt;P&gt;but we have target table using Azure Databricks Lakehouse (Delta), with configuration column RECORD_ID NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1 INCREMENT BY 1) the result fails with error message "[DELTA_NOT_NULL_CONSTRAINT_VIOLATED] NOT NULL constraint violation for column: RECORD_ID."&lt;/P&gt;
&lt;P&gt;You should know that we have created a ticket to Qlik Support but the issue is still under analysis in the lap&lt;/P&gt;
&lt;P&gt;can you help me faster? because this is a production issue&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 03:03:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2504076#M13622</guid>
      <dc:creator>AgusBudianto</dc:creator>
      <dc:date>2025-02-03T03:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to transformation column auto increment  in target data</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2505319#M13675</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;Anto,&amp;nbsp;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/307196" target="_blank"&gt;@AgusBudianto&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for the update. I'm pasting the update from your &lt;A href="https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2505222#M13668:~:text=Hello%C2%A0Anto,John." target="_blank" rel="noopener"&gt;another article&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;It seems that using the current timestamp is the best approach to identify the latest updated rows. In Databricks, a column defined as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG data-start="196" data-end="232"&gt;GENERATED BY DEFAULT AS IDENTITY&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;cannot be directly updated for existing data. Additionally, it cannot be modified when using the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG data-start="330" data-end="338"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;method to insert records into a table. However, it can be updated through&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG data-start="413" data-end="423"&gt;INSERT&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;operations, but Qlik Replicate does not support transactional apply mode for Databricks endpoint.&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, 11 Feb 2025 09:22:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2505319#M13675</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2025-02-11T09:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to transformation column auto increment  in target data</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2505523#M13684</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115309"&gt;@john_wang&lt;/a&gt;&amp;nbsp; for convincing us that using current timestamp is the best approach.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 08:15:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2505523#M13684</guid>
      <dc:creator>AgusBudianto</dc:creator>
      <dc:date>2025-02-12T08:15:57Z</dc:date>
    </item>
  </channel>
</rss>

