<?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: Transformation column INSERT_DATETIME is overwritten with Null value when record is updated in Snowflake Target in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-Transformation-column-INSERT-DATETIME-is/ta-p/1949728</link>
    <description>&lt;P&gt;Here is the general use case from many customers.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Requirement:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Add 3 extra columns to the Snowflake target table like operation, inserted date, and updated date.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Operation:&lt;/STRONG&gt; what was the operation performed on a specific record? It will be updated with INSERT or UPDATE or DELETE&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Inserted date:&lt;/STRONG&gt; The inserted date should be the current time when the record was inserted the first time and it must be unchanged after that.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Updated date:&lt;/STRONG&gt; The Updated date must be updated when the record got an update.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Problem encountered:&amp;nbsp;&lt;/STRONG&gt;Operation and Updated date transformations are working fine but the Inserted date is updating with 'NULL' value when there is an update on record.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Resolution:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Add &lt;FONT face="courier new,courier"&gt;emptyFieldAsNull&lt;/FONT&gt; internal parameter to the snowflake endpoint.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="snowflake_ip.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/82942iC9C2CDE7BE63728F/image-size/large?v=v2&amp;amp;px=999" role="button" title="snowflake_ip.png" alt="snowflake_ip.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Create a Global transformation as below to create &lt;FONT face="courier new,courier"&gt;INSERT_DATETIME&lt;/FONT&gt; column.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="inserteddate.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/82941i10447F67E8AD251B/image-size/large?v=v2&amp;amp;px=999" role="button" title="inserteddate.png" alt="inserteddate.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Reload the task. Insert a record and update the same record to monitor the &lt;FONT face="courier new,courier"&gt;INSERT_DATETIME&lt;/FONT&gt; column value.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik Replicate" id="qlikReplicate"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;BR /&gt;Snowflake Target&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jun 2022 14:34:19 GMT</pubDate>
    <dc:creator>SwathiPulagam</dc:creator>
    <dc:date>2022-06-29T14:34:19Z</dc:date>
    <item>
      <title>Qlik Replicate: Transformation column INSERT_DATETIME is overwritten with Null value when record is updated in Snowflake Target</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-Transformation-column-INSERT-DATETIME-is/ta-p/1949728</link>
      <description>&lt;P&gt;Here is the general use case from many customers.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Requirement:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Add 3 extra columns to the Snowflake target table like operation, inserted date, and updated date.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Operation:&lt;/STRONG&gt; what was the operation performed on a specific record? It will be updated with INSERT or UPDATE or DELETE&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Inserted date:&lt;/STRONG&gt; The inserted date should be the current time when the record was inserted the first time and it must be unchanged after that.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Updated date:&lt;/STRONG&gt; The Updated date must be updated when the record got an update.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Problem encountered:&amp;nbsp;&lt;/STRONG&gt;Operation and Updated date transformations are working fine but the Inserted date is updating with 'NULL' value when there is an update on record.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Resolution:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Add &lt;FONT face="courier new,courier"&gt;emptyFieldAsNull&lt;/FONT&gt; internal parameter to the snowflake endpoint.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="snowflake_ip.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/82942iC9C2CDE7BE63728F/image-size/large?v=v2&amp;amp;px=999" role="button" title="snowflake_ip.png" alt="snowflake_ip.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Create a Global transformation as below to create &lt;FONT face="courier new,courier"&gt;INSERT_DATETIME&lt;/FONT&gt; column.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="inserteddate.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/82941i10447F67E8AD251B/image-size/large?v=v2&amp;amp;px=999" role="button" title="inserteddate.png" alt="inserteddate.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Reload the task. Insert a record and update the same record to monitor the &lt;FONT face="courier new,courier"&gt;INSERT_DATETIME&lt;/FONT&gt; column value.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik Replicate" id="qlikReplicate"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;BR /&gt;Snowflake Target&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 14:34:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-Transformation-column-INSERT-DATETIME-is/ta-p/1949728</guid>
      <dc:creator>SwathiPulagam</dc:creator>
      <dc:date>2022-06-29T14:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Replicate: Transformation column INSERT_DATETIME is overwritten with Null value when record is updated in Snowflake Target</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-Transformation-column-INSERT-DATETIME-is/tac-p/2129389#M10470</link>
      <description>&lt;P&gt;Hi, Pls what is the UPDATE transformation value that is already working?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 01:41:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-Transformation-column-INSERT-DATETIME-is/tac-p/2129389#M10470</guid>
      <dc:creator>igbins09</dc:creator>
      <dc:date>2023-10-18T01:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Replicate: Transformation column INSERT_DATETIME is overwritten with Null value when record is updated in Snowflake Target</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-Transformation-column-INSERT-DATETIME-is/tac-p/2129435#M10472</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/246917"&gt;@igbins09&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please submit your question directly to the &lt;A href="https://community.qlik.com/t5/Qlik-Replicate/bd-p/qlik-replicate-discussions" target="_blank" rel="noopener"&gt;Qlik Replicate forum&lt;/A&gt;, including details about your requirements and potential issues you are facing.&lt;/P&gt;
&lt;P&gt;All the best,&lt;BR /&gt;Sonja&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 07:22:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-Transformation-column-INSERT-DATETIME-is/tac-p/2129435#M10472</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2023-10-18T07:22:45Z</dc:date>
    </item>
  </channel>
</rss>

