<?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: Updated date and inserted date in snowflake stage in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Updated-date-and-inserted-date-in-snowflake-stage/m-p/2131421#M7830</link>
    <description>&lt;P&gt;Any resolution on this topic ? I followed the recommendation but it is not working for me. During update I lose original insert_date. I am using PG as my source and Snowflake as Target.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2023 13:57:35 GMT</pubDate>
    <dc:creator>nigupta</dc:creator>
    <dc:date>2023-10-24T13:57:35Z</dc:date>
    <item>
      <title>Updated date and inserted date in snowflake stage</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Updated-date-and-inserted-date-in-snowflake-stage/m-p/1948901#M3046</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;
&lt;P&gt;we have requirement like when we load into snowflake stage area from oracle. we need to add 3 more columns operation , inserted date, updated date.&lt;/P&gt;
&lt;P&gt;We are doing CDC process , when record already exist we need to update and updated date should be update. But inserted date should not change .&lt;/P&gt;
&lt;P&gt;have tried but inserted date also becoming null.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please help me on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Kalesha Shaik.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 07:52:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Updated-date-and-inserted-date-in-snowflake-stage/m-p/1948901#M3046</guid>
      <dc:creator>kalesha786</dc:creator>
      <dc:date>2022-06-28T07:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Updated date and inserted date in snowflake stage</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Updated-date-and-inserted-date-in-snowflake-stage/m-p/1949031#M3049</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/187117"&gt;@kalesha786&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can use the below transformation on the table level \ Global level. The transformation column(inserted date) datatype must be VARCHAR(XX)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;CASE&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;WHEN $AR_H_OPERATION = 'INSERT' then&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;datetime('now')&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ELSE&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;''&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;END&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, you have to enable the internal parameter "&lt;STRONG&gt;emptyFieldAsNull&lt;/STRONG&gt;" on the snowflake endpoint.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;I will prepare an article and post it soon. Please try the above solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Swathi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 11:05:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Updated-date-and-inserted-date-in-snowflake-stage/m-p/1949031#M3049</guid>
      <dc:creator>SwathiPulagam</dc:creator>
      <dc:date>2022-06-28T11:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Updated date and inserted date in snowflake stage</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Updated-date-and-inserted-date-in-snowflake-stage/m-p/1949162#M3054</link>
      <description>&lt;P&gt;If possible can you please share exactly with screen shots , how to achieve&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 14:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Updated-date-and-inserted-date-in-snowflake-stage/m-p/1949162#M3054</guid>
      <dc:creator>kalesha786</dc:creator>
      <dc:date>2022-06-28T14:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Updated date and inserted date in snowflake stage</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Updated-date-and-inserted-date-in-snowflake-stage/m-p/1949290#M3058</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;While Swathi is correct , you will also need to add code that does a target lookup to retrieve the existing date when the operation is an update.&lt;/P&gt;
&lt;P&gt;Please check this article in Qlik community that discusses this.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/Transformation-Target-Lookup-Insert-Date/ta-p/1805653" target="_blank"&gt;https://community.qlik.com/t5/Knowledge/Transformation-Target-Lookup-Insert-Date/ta-p/1805653&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can also check out this webinar discussing the same things.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/Customizing-Data-with-Qlik-Replicate/ta-p/1948509" target="_blank"&gt;https://community.qlik.com/t5/Knowledge/Customizing-Data-with-Qlik-Replicate/ta-p/1948509&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Let me know if this helps out.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Michael Litz&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 17:08:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Updated-date-and-inserted-date-in-snowflake-stage/m-p/1949290#M3058</guid>
      <dc:creator>Michael_Litz</dc:creator>
      <dc:date>2022-06-28T17:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Updated date and inserted date in snowflake stage</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Updated-date-and-inserted-date-in-snowflake-stage/m-p/1949298#M3059</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 17:32:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Updated-date-and-inserted-date-in-snowflake-stage/m-p/1949298#M3059</guid>
      <dc:creator>kalesha786</dc:creator>
      <dc:date>2022-06-28T17:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Updated date and inserted date in snowflake stage</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Updated-date-and-inserted-date-in-snowflake-stage/m-p/1949798#M3066</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/187117"&gt;@kalesha786&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, the Data Enrichment function like Target_lookup won't work for Snowflake target. You can follow the steps that I mentioned in the below article to fulfill your use case.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/Qlik-Replicate-Transformation-column-INSERT-DATETIME-is/ta-p/1949728" target="_blank"&gt;https://community.qlik.com/t5/Knowledge/Qlik-Replicate-Transformation-column-INSERT-DATETIME-is/ta-p/1949728&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Swathi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 14:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Updated-date-and-inserted-date-in-snowflake-stage/m-p/1949798#M3066</guid>
      <dc:creator>SwathiPulagam</dc:creator>
      <dc:date>2022-06-29T14:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Updated date and inserted date in snowflake stage</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Updated-date-and-inserted-date-in-snowflake-stage/m-p/1951437#M3090</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/144170"&gt;@SwathiPulagam&lt;/a&gt;&amp;nbsp; ,&amp;nbsp; have tried still not working&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 15:35:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Updated-date-and-inserted-date-in-snowflake-stage/m-p/1951437#M3090</guid>
      <dc:creator>kalesha786</dc:creator>
      <dc:date>2022-07-04T15:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Updated date and inserted date in snowflake stage</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Updated-date-and-inserted-date-in-snowflake-stage/m-p/1952558#M3101</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/187117"&gt;@kalesha786&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please create a support case. I can have a working session with you to fix the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Swathi&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 20:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Updated-date-and-inserted-date-in-snowflake-stage/m-p/1952558#M3101</guid>
      <dc:creator>SwathiPulagam</dc:creator>
      <dc:date>2022-07-06T20:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Updated date and inserted date in snowflake stage</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Updated-date-and-inserted-date-in-snowflake-stage/m-p/1952607#M3107</link>
      <description>&lt;P&gt;Minor observation -&lt;/P&gt;
&lt;P&gt;One&amp;nbsp;&amp;nbsp;may want to make use of&amp;nbsp;&lt;STRONG&gt;$AR_H_TIMESTAMP&lt;/STRONG&gt; instead of &lt;STRONG&gt;datetime('now')&lt;/STRONG&gt;, because one probably needs to know when the insert happened, not when it was processed by Replicate.&lt;/P&gt;
&lt;P&gt;This is with respect to the suggested&lt;/P&gt;
&lt;P&gt;CASE WHEN $AR_H_OPERATION = 'INSERT' &lt;BR /&gt;then &lt;STRONG&gt;datetime('now')&lt;/STRONG&gt; ELSE '' END&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 02:17:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Updated-date-and-inserted-date-in-snowflake-stage/m-p/1952607#M3107</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2022-07-07T02:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Updated date and inserted date in snowflake stage</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Updated-date-and-inserted-date-in-snowflake-stage/m-p/2131421#M7830</link>
      <description>&lt;P&gt;Any resolution on this topic ? I followed the recommendation but it is not working for me. During update I lose original insert_date. I am using PG as my source and Snowflake as Target.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 13:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Updated-date-and-inserted-date-in-snowflake-stage/m-p/2131421#M7830</guid>
      <dc:creator>nigupta</dc:creator>
      <dc:date>2023-10-24T13:57:35Z</dc:date>
    </item>
  </channel>
</rss>

