<?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 REPLACE(STR_VALUE, CHAR(13), '') in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/REPLACE-STR-VALUE-CHAR-13/m-p/2415069#M9269</link>
    <description>&lt;P&gt;Hi Sir,&lt;/P&gt;
&lt;P&gt;The replica source db is MS SQL server, the target is Snowflake db.&amp;nbsp; Selection from the source db includes the statement like:&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;REPLACE(REPLACE(STR_VALUE, CHAR(13), ''), CHAR(10), '')&lt;/P&gt;
&lt;P&gt;How to handle that in the qlik transform?&amp;nbsp; Will simply copy&amp;nbsp; 'REPLACE(REPLACE(STR_VALUE, CHAR(13), ''), CHAR(10), '')' in the Build Expression be good enough?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Feb 2024 22:28:59 GMT</pubDate>
    <dc:creator>RichJ</dc:creator>
    <dc:date>2024-02-05T22:28:59Z</dc:date>
    <item>
      <title>REPLACE(STR_VALUE, CHAR(13), '')</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/REPLACE-STR-VALUE-CHAR-13/m-p/2415069#M9269</link>
      <description>&lt;P&gt;Hi Sir,&lt;/P&gt;
&lt;P&gt;The replica source db is MS SQL server, the target is Snowflake db.&amp;nbsp; Selection from the source db includes the statement like:&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;REPLACE(REPLACE(STR_VALUE, CHAR(13), ''), CHAR(10), '')&lt;/P&gt;
&lt;P&gt;How to handle that in the qlik transform?&amp;nbsp; Will simply copy&amp;nbsp; 'REPLACE(REPLACE(STR_VALUE, CHAR(13), ''), CHAR(10), '')' in the Build Expression be good enough?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 22:28:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/REPLACE-STR-VALUE-CHAR-13/m-p/2415069#M9269</guid>
      <dc:creator>RichJ</dc:creator>
      <dc:date>2024-02-05T22:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE(STR_VALUE, CHAR(13), '')</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/REPLACE-STR-VALUE-CHAR-13/m-p/2415091#M9270</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/152714"&gt;@RichJ&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to Qlik Community!&lt;/P&gt;
&lt;P&gt;There are many options to achieve this, the most easy way is using an Internal Parameter in target Snowflake endpoint:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;replaceChars&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please check the detail information in article &lt;A title="Qlik Replicate missing carriage returns in Snowflake" href="https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-missing-carriage-returns-in-Snowflake/ta-p/1940894" target="_blank" rel="noopener"&gt;Qlik Replicate missing carriage returns in Snowflake&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 01:18:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/REPLACE-STR-VALUE-CHAR-13/m-p/2415091#M9270</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-02-06T01:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE(STR_VALUE, CHAR(13), '')</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/REPLACE-STR-VALUE-CHAR-13/m-p/2415103#M9274</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/152714"&gt;@RichJ&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I wish to supply some additional information about the "replaceChars". For multiple replacements, please add pairs to the list. For example,&lt;/P&gt;
&lt;PRE&gt;replaceChars=0x0a,0x20,0x0d,0x20&lt;/PRE&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Desmond&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 02:23:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/REPLACE-STR-VALUE-CHAR-13/m-p/2415103#M9274</guid>
      <dc:creator>DesmondWOO</dc:creator>
      <dc:date>2024-02-06T02:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE(STR_VALUE, CHAR(13), '')</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/REPLACE-STR-VALUE-CHAR-13/m-p/2415225#M9276</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&lt;SPAN&gt;Will simply copy&amp;nbsp; 'REPLACE(REPLACE(STR_VALUE, CHAR(13), ''), CHAR(10), '')' in the Build Expression be good enough?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, with the understanding that you need to pass in a variable with the leading $ sign:&amp;nbsp; &amp;nbsp;$STR_VALUE&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I work similar questions/solutions I always make sure to PARSE/TEST&amp;nbsp; with SIMPLE values first like 65 and 66 for A and B and replace with X and Y first. Next try an empty string for one, and then two.&lt;/P&gt;
&lt;P&gt;Once you see that work, you may assume that the non-printable CR/LF values 13/10 will also work.&lt;/P&gt;
&lt;P&gt;the internal parameter &lt;EM&gt;&lt;STRONG&gt;replaceChars&lt;/STRONG&gt; &lt;/EM&gt;such as&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/125525"&gt;@DesmondWOO&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115309"&gt;@john_wang&lt;/a&gt;&amp;nbsp; suggest is very good as well, but operates on every single target column.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Therefor if you need this for a single column or a a handful of columns then I'd stick to the REPLACE function for each of them. If it is needed for several columns/table and multiple tables, or if you are doing wildcard table matches and don't really know your columns to begin with, then &lt;EM&gt;&lt;STRONG&gt;replaceChars&lt;/STRONG&gt; &lt;/EM&gt;is a simple effective bruteforce solution.&lt;/P&gt;
&lt;P&gt;Hein&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 08:07:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/REPLACE-STR-VALUE-CHAR-13/m-p/2415225#M9276</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2024-02-06T08:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE(STR_VALUE, CHAR(13), '')</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/REPLACE-STR-VALUE-CHAR-13/m-p/2418551#M9470</link>
      <description>&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Hello team,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;If our response has been helpful, please consider clicking "Accept as Solution". This will assist other users in easily finding the answer.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Sushil Kumar&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 06:21:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/REPLACE-STR-VALUE-CHAR-13/m-p/2418551#M9470</guid>
      <dc:creator>SushilKumar</dc:creator>
      <dc:date>2024-02-14T06:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE(STR_VALUE, CHAR(13), '')</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/REPLACE-STR-VALUE-CHAR-13/m-p/2472497#M12124</link>
      <description>&lt;P&gt;REPLACE(REPLACE(STR_VALUE, CHR(13), ''), CHR(10), '')&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 19:41:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/REPLACE-STR-VALUE-CHAR-13/m-p/2472497#M12124</guid>
      <dc:creator>gperedo</dc:creator>
      <dc:date>2024-07-23T19:41:59Z</dc:date>
    </item>
  </channel>
</rss>

