<?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: Replace the character in STRING with tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Replace-the-character-in-STRING-with-tMap/m-p/2239762#M27468</link>
    <description>&lt;P&gt;I have to remove double quotes from string but its throwing me below in tmap.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tmap_error.PNG" style="width: 660px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M63Y.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135806iB6AD23C66374553B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M63Y.png" alt="0683p000009M63Y.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;error msg:&lt;/P&gt; 
&lt;DIV&gt;
  Multiple markers at this line 
&lt;/DIV&gt; 
&lt;DIV&gt;
  - The method replaceAll(String, String) in the type String is not applicable for the arguments&amp;nbsp; 
&lt;/DIV&gt; 
&lt;DIV&gt;
  (String) 
&lt;/DIV&gt; 
&lt;DIV&gt;
  - Syntax error, insert ")" to complete MethodInvocation 
&lt;/DIV&gt; 
&lt;DIV&gt;
  - Syntax error, insert ";" to complete Statement 
&lt;/DIV&gt; 
&lt;DIV&gt;
  - String literal is not properly closed by a double-quote 
&lt;/DIV&gt;</description>
    <pubDate>Thu, 20 Jun 2019 02:01:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-06-20T02:01:05Z</dc:date>
    <item>
      <title>Replace the character in STRING with tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Replace-the-character-in-STRING-with-tMap/m-p/2239757#M27463</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a String data "\N" in timestamp column and I'd like to replace this character into "null", then convert the type from STRING to DATE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I define the conversion rule in tMap ??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 07:15:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Replace-the-character-in-STRING-with-tMap/m-p/2239757#M27463</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-04T07:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Replace the character in STRING with tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Replace-the-character-in-STRING-with-tMap/m-p/2239758#M27464</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLHOAA4"&gt;@wakkieeeeee&lt;/A&gt;&amp;nbsp;,you can use the below way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row3.newColumn1.replaceAll("/N","NULL").equals("NULL")?null:TalendDate.parseDate("yyyy-MM-dd HH:mm:ss",row3.newColumn1 )&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 07:18:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Replace-the-character-in-STRING-with-tMap/m-p/2239758#M27464</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2019-02-04T07:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Replace the character in STRING with tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Replace-the-character-in-STRING-with-tMap/m-p/2239759#M27465</link>
      <description>&lt;PRE&gt;row1.data.replaceAll("\\\\N", "")&lt;/PRE&gt;&lt;P&gt;The above would replace \N to nothing in your string "data"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;TalendDate.parseDate("yyyy-MM-dd HH:mm:ss",
"&amp;lt;Your string here&amp;gt;")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Use above to parse date from string&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 07:26:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Replace-the-character-in-STRING-with-tMap/m-p/2239759#M27465</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-04T07:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Replace the character in STRING with tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Replace-the-character-in-STRING-with-tMap/m-p/2239760#M27466</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your advise!&lt;/P&gt;&lt;P&gt;Thanks to your help, I could replace the "\N" to "null" and convert from STRING to DATE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way, I have to do the same things on the all columns..&lt;/P&gt;&lt;P&gt;How do I cope with it with tMap?&lt;/P&gt;&lt;P&gt;I assume that I can utilize the Var function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The function I created is the below;&lt;/P&gt;&lt;P&gt;row2.session_start_time.replaceAll("\\\\N","NULL").equals("NULL")?null:TalendDate.parseDate("yyyy-MM-dd HH:mm:ss",row2.session_start_time)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I apply this function to all columns??&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LuU4"&gt;tmap image03.PNG&lt;/A&gt;</description>
      <pubDate>Mon, 04 Feb 2019 09:19:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Replace-the-character-in-STRING-with-tMap/m-p/2239760#M27466</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-04T09:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Replace the character in STRING with tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Replace-the-character-in-STRING-with-tMap/m-p/2239761#M27467</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLHOAA4"&gt;@wakkieeeeee&lt;/A&gt;&amp;nbsp;,you need to define manually in tmap for each column.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 09:35:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Replace-the-character-in-STRING-with-tMap/m-p/2239761#M27467</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2019-02-04T09:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Replace the character in STRING with tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Replace-the-character-in-STRING-with-tMap/m-p/2239762#M27468</link>
      <description>&lt;P&gt;I have to remove double quotes from string but its throwing me below in tmap.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tmap_error.PNG" style="width: 660px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M63Y.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135806iB6AD23C66374553B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M63Y.png" alt="0683p000009M63Y.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;error msg:&lt;/P&gt; 
&lt;DIV&gt;
  Multiple markers at this line 
&lt;/DIV&gt; 
&lt;DIV&gt;
  - The method replaceAll(String, String) in the type String is not applicable for the arguments&amp;nbsp; 
&lt;/DIV&gt; 
&lt;DIV&gt;
  (String) 
&lt;/DIV&gt; 
&lt;DIV&gt;
  - Syntax error, insert ")" to complete MethodInvocation 
&lt;/DIV&gt; 
&lt;DIV&gt;
  - Syntax error, insert ";" to complete Statement 
&lt;/DIV&gt; 
&lt;DIV&gt;
  - String literal is not properly closed by a double-quote 
&lt;/DIV&gt;</description>
      <pubDate>Thu, 20 Jun 2019 02:01:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Replace-the-character-in-STRING-with-tMap/m-p/2239762#M27468</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-20T02:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Replace the character in STRING with tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Replace-the-character-in-STRING-with-tMap/m-p/2239763#M27469</link>
      <description>never mind fixed this with
&lt;BR /&gt;StringHandling.CHANGE(row1.CLRTY_PROJ_NM,"\"","\"\"")</description>
      <pubDate>Thu, 20 Jun 2019 03:54:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Replace-the-character-in-STRING-with-tMap/m-p/2239763#M27469</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-20T03:54:49Z</dc:date>
    </item>
  </channel>
</rss>

