<?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: Transformation of empty string to NULL in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Transformation-of-empty-string-to-NULL/m-p/2542953#M15883</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2924"&gt;@desmondchew&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Please try applying the following transformation:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;CASE &lt;BR /&gt;WHEN $BUYER_ID = '' THEN NULL&lt;BR /&gt;ELSE $BUYER_ID&lt;BR /&gt;END&lt;/P&gt;
&lt;P&gt;&lt;!--StartFragment --&gt;&lt;/P&gt;
&lt;P&gt;Regarding the internal parameter &lt;STRONG&gt;&lt;CODE&gt;emptyFieldAsNull&lt;/CODE&gt;&lt;/STRONG&gt;, it does not appear to work in my environment either. I recommend opening a support ticket so the issue can be investigated further.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Desmond&lt;/P&gt;
&lt;P&gt;&lt;!--EndFragment --&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Feb 2026 05:54:46 GMT</pubDate>
    <dc:creator>DesmondWOO</dc:creator>
    <dc:date>2026-02-13T05:54:46Z</dc:date>
    <item>
      <title>Transformation of empty string to NULL</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Transformation-of-empty-string-to-NULL/m-p/2542881#M15881</link>
      <description>&lt;P&gt;We are replicating from source MySQL 8 on premise into target Snowflake AWS. We have enabled internal parameter in Snowflake,&amp;nbsp;&lt;SPAN&gt;emptyFieldAsNull=1. Our requirement is to make all blank values to be NULL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In MySQL, the column "buyer_id" has a default value of null.&lt;/P&gt;&lt;P&gt;Excerpt create table syntax:&lt;/P&gt;&lt;P&gt;`BUYER_ID` varchar(30) COLLATE utf8mb4_0900_as_cs DEFAULT NULL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT po_no,&lt;BR /&gt;buyer_Id,&lt;BR /&gt;ISNULL(buyer_Id) AS is_it_null,&lt;BR /&gt;LENGTH(buyer_Id) AS char_length,&lt;BR /&gt;HEX(buyer_Id) AS hex_value&lt;BR /&gt;FROM PO&lt;BR /&gt;WHERE po_no in ('25001600','25000455','25000458','25000459','50377503');&lt;BR /&gt;AND buyer_Id IS NULL OR buyer_Id = ''&lt;/P&gt;&lt;P&gt;You could see from screenshot that only po_no=50377503 is NULL, the rest is blank (empty string).&lt;/P&gt;&lt;P&gt;After replicate is loaded into Snowflake, Snowflake return results the same, only po_no=50377503 appear as NULL, the rest is empty. It's in sync. But the user requirement, they want the empty string to appear as NULL. I have enabled the emptyfieldasNULL parameter yet still same result.&lt;/P&gt;&lt;P&gt;Then I have tried transformation, using replace column value, f(x)=&lt;SPAN&gt;NULLIF(TRIM($AR_CURR_COLUMN_VALUE), '') expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But still the value output in Snowflake remain as empty string. How can we get it to be NULL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;BR /&gt;Desmond&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2026 12:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Transformation-of-empty-string-to-NULL/m-p/2542881#M15881</guid>
      <dc:creator>desmondchew</dc:creator>
      <dc:date>2026-02-12T12:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Transformation of empty string to NULL</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Transformation-of-empty-string-to-NULL/m-p/2542953#M15883</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2924"&gt;@desmondchew&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Please try applying the following transformation:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;CASE &lt;BR /&gt;WHEN $BUYER_ID = '' THEN NULL&lt;BR /&gt;ELSE $BUYER_ID&lt;BR /&gt;END&lt;/P&gt;
&lt;P&gt;&lt;!--StartFragment --&gt;&lt;/P&gt;
&lt;P&gt;Regarding the internal parameter &lt;STRONG&gt;&lt;CODE&gt;emptyFieldAsNull&lt;/CODE&gt;&lt;/STRONG&gt;, it does not appear to work in my environment either. I recommend opening a support ticket so the issue can be investigated further.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Desmond&lt;/P&gt;
&lt;P&gt;&lt;!--EndFragment --&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2026 05:54:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Transformation-of-empty-string-to-NULL/m-p/2542953#M15883</guid>
      <dc:creator>DesmondWOO</dc:creator>
      <dc:date>2026-02-13T05:54:46Z</dc:date>
    </item>
  </channel>
</rss>

