<?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: How to transformation column auto increment in target data Databricks Lakehouse (Delta) in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2528143#M14892</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/177090"&gt;@bantuh2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;For AlloyDB/PostgreSQL database, column &lt;STRONG&gt;SERIAL&lt;/STRONG&gt; should be used. Please check my comments in article &lt;A href="https://community.qlik.com/t5/Qlik-Replicate/Replicate-failing-to-load-target-table-with-new-identity-column/m-p/2411341#M9075:~:text=05%3A52%20PM-,Hello%C2%A0%40Jimbo91%C2%A0%2C,the%20task.%20Then%20the%20task%20CDC%20stage%20will%20continue%20to%20run.,-Hope%20this%20helps" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;load target table with&amp;nbsp;&lt;/SPAN&gt;&lt;EM class="Highlight ht3ec7d61a-4558-4809-bebc-3c5e0889f80a"&gt;new&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;identity column (GENERATED BY DEFAULT)&lt;/SPAN&gt;&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Aug 2025 10:34:23 GMT</pubDate>
    <dc:creator>john_wang</dc:creator>
    <dc:date>2025-08-22T10:34:23Z</dc:date>
    <item>
      <title>How to transformation column auto increment in target data Databricks Lakehouse (Delta)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2504108#M13627</link>
      <description>&lt;DIV class="topic-subject-wrapper"&gt;
&lt;DIV class="lia-message-subject lia-component-message-view-widget-subject"&gt;
&lt;DIV class="MessageSubject"&gt;
&lt;DIV class="lia-message-subject"&gt;How to transformation column auto increment in target data&amp;nbsp;Databricks Lakehouse (Delta)&lt;/DIV&gt;
&lt;DIV class="lia-message-subject"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="MessageInResponseTo lia-component-message-view-widget-in-response-to lia-component-in-response-to"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="bodyDisplay" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&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 "RECORD_ID" 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;/P&gt;
&lt;P&gt;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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;previously I asked in the following post:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2504076#M13622" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2504076#M13622&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks you&lt;/P&gt;
&lt;P&gt;Anto&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 03 Feb 2025 04:49:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2504108#M13627</guid>
      <dc:creator>AgusBudianto</dc:creator>
      <dc:date>2025-02-03T04:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to transformation column auto increment in target data Databricks Lakehouse (Delta)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2504758#M13662</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The recommendation provided in your previous community entry are still in effect. What is the number of the case that you have opened? Please add the log with the error that you get to the case so we can see exactly when he error is manifested and help troubleshooting the problem.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Orit&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 09:02:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2504758#M13662</guid>
      <dc:creator>OritA</dc:creator>
      <dc:date>2025-02-06T09:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to transformation column auto increment in target data Databricks Lakehouse (Delta)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2505222#M13668</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/307196"&gt;@AgusBudianto&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As value of IDENTITY column will be generated by the database, target table should be created manually and the RECORD_ID column should not be mapped in the transformation page.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I can insert records to the target table, however, RECORD_ID is still NULL. I think it is a limitation. Please create a support ticket and let us check with the R&amp;amp;D team.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Desmond&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 16:05:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2505222#M13668</guid>
      <dc:creator>DesmondWOO</dc:creator>
      <dc:date>2025-02-10T16:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to transformation column auto increment in target data Databricks Lakehouse (Delta)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2505261#M13673</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/140377"&gt;@OritA&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/125525"&gt;@DesmondWOO&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have created a ticket to Qlik Support and the result we got is that there is indeed a limitation for Azure Databrick Delta table targets and they recommend using randomblob(N) or random() function.&lt;/P&gt;
&lt;P&gt;Please note that we use record_id to detect the last update, for example if 1 ID updates data several times, then we will take the last data based on the last record_id or sorted by record_id.&lt;/P&gt;
&lt;P&gt;However, we found a new problem on the SQL Server target that previously had no problem adding record_id, after we checked the contents of the record_id became random, for example we did an insert on ID 123 it should be record_id 1 then we did an update on ID 123 it should be record_id 2 but the conditions were reversed this made us unable to use it in capturing changes, maybe we use the "Batch optimized apply" method on the task&lt;/P&gt;
&lt;P&gt;Finally we replaced the record_id with the current time in the hope of being able to take the last time&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;Anto&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 01:31:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2505261#M13673</guid>
      <dc:creator>AgusBudianto</dc:creator>
      <dc:date>2025-02-11T01:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to transformation column auto increment in target data Databricks Lakehouse (Delta)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2505315#M13674</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"&gt;@AgusBudianto&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for the update.&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;STRONG data-start="196" data-end="232"&gt;GENERATED BY DEFAULT AS IDENTITY&lt;/STRONG&gt; cannot be directly updated for existing data. Additionally, it cannot be modified when using the &lt;STRONG data-start="330" data-end="338"&gt;LOAD&lt;/STRONG&gt; method to insert records into a table. However, it can be updated through &lt;STRONG data-start="413" data-end="423"&gt;INSERT&lt;/STRONG&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:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2505315#M13674</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2025-02-11T09:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to transformation column auto increment in target data Databricks Lakehouse (Delta)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2505486#M13678</link>
      <description>&lt;P&gt;Thanks for the response and explanation&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/125525"&gt;@DesmondWOO&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/140377"&gt;@OritA&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &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 the method we used before is the best way, we have a CDC task using the Store Changes Processing mechanism and adding Record_ID to the Global Rule parameter "Add a column for column data type %.% 'RECORD_ID' STRING(50) and sub type Regular with $AR_H_TIMESTAMP" to retrieve the last update data based on 'RECORD_ID'&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;Anto&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 04:01:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2505486#M13678</guid>
      <dc:creator>AgusBudianto</dc:creator>
      <dc:date>2025-02-12T04:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to transformation column auto increment in target data Databricks Lakehouse (Delta)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2505489#M13679</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"&gt;@AgusBudianto&lt;/a&gt;&amp;nbsp;, copy&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/140377"&gt;@OritA&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/125525"&gt;@DesmondWOO&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you so much for the feedback. It's helpful for all of us!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 04:15:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2505489#M13679</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2025-02-12T04:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to transformation column auto increment in target data Databricks Lakehouse (Delta)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2528140#M14890</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;I am interested in this topic,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;During CDC, Qlik replicate should add incremented sequence number at the time each record insert into the table. Please suggest how we can achieve this. by the way we are replicating from&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DB2 for LUW to AlloyDB. We have to generate a unique primary key for the target AlloyDB table.&lt;BR /&gt;&lt;BR /&gt;The standard AUTO_INCREMENT feature in AlloyDB is not a good option because it automatically applies a NOT NULL constraint, which is causing our replication to fail.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;can you suggest on this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 10:04:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2528140#M14890</guid>
      <dc:creator>bantuh2</dc:creator>
      <dc:date>2025-08-22T10:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to transformation column auto increment in target data Databricks Lakehouse (Delta)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2528143#M14892</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/177090"&gt;@bantuh2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;For AlloyDB/PostgreSQL database, column &lt;STRONG&gt;SERIAL&lt;/STRONG&gt; should be used. Please check my comments in article &lt;A href="https://community.qlik.com/t5/Qlik-Replicate/Replicate-failing-to-load-target-table-with-new-identity-column/m-p/2411341#M9075:~:text=05%3A52%20PM-,Hello%C2%A0%40Jimbo91%C2%A0%2C,the%20task.%20Then%20the%20task%20CDC%20stage%20will%20continue%20to%20run.,-Hope%20this%20helps" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;load target table with&amp;nbsp;&lt;/SPAN&gt;&lt;EM class="Highlight ht3ec7d61a-4558-4809-bebc-3c5e0889f80a"&gt;new&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;identity column (GENERATED BY DEFAULT)&lt;/SPAN&gt;&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 10:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/How-to-transformation-column-auto-increment-in-target-data/m-p/2528143#M14892</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2025-08-22T10:34:23Z</dc:date>
    </item>
  </channel>
</rss>

