<?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: Avoid special characters on tmap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356561#M122045</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error is not with replace function. are you using any concatenation function in tMap? Please provide tMap configurations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
    <pubDate>Mon, 09 Apr 2018 14:48:35 GMT</pubDate>
    <dc:creator>vboppudi</dc:creator>
    <dc:date>2018-04-09T14:48:35Z</dc:date>
    <item>
      <title>Avoid special characters on tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356558#M122042</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have been trying to avoid the special character like 312328-342344 ("-") and have output as 312328342344 or even 312328 342344 &amp;nbsp;but it is not happening. Can you please help me on this. I did try the following;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;FONT color="#a02000"&gt;row2.ColumnName.replaceAll(&lt;/FONT&gt;"[&lt;FONT color="#b22200"&gt;-&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT size="4"&gt;]", "")&amp;nbsp; and more but it doesn't work, I keep getting error. This has a data type string by the way. Can somebody help on this?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 13:56:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356558#M122042</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-09T13:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid special characters on tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356559#M122043</link>
      <description>&lt;P&gt;&amp;nbsp;Your code should work. What is the error? Is it a nullpointerexception? If so, use this code....&lt;/P&gt;&lt;PRE&gt;row2.ColumnName!=null ? row2.ColumnName.replaceAll("[-]", "") : row2.ColumnName&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Apr 2018 14:19:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356559#M122043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-09T14:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid special characters on tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356560#M122044</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response, it is not null pointer error. I get below error;&lt;/P&gt;&lt;P align="left"&gt;Error Line: 3791&lt;/P&gt;&lt;P&gt;Detail Message: The operator || is undefined for the argument type(s) boolean, String&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 14:32:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356560#M122044</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-09T14:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid special characters on tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356561#M122045</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error is not with replace function. are you using any concatenation function in tMap? Please provide tMap configurations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 14:48:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356561#M122045</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2018-04-09T14:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid special characters on tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356562#M122046</link>
      <description>&lt;P&gt;Hi Boppudi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am attaching the tmap expressions. Please let me know if any further questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsK8"&gt;tmapeg.JPG&lt;/A&gt;</description>
      <pubDate>Mon, 09 Apr 2018 14:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356562#M122046</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-09T14:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid special characters on tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356563#M122047</link>
      <description>&lt;P&gt;I think it's syntax error. Can you please provide more details what you are doing in tMap. Why are you using || in coding?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 15:00:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356563#M122047</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2018-04-09T15:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid special characters on tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356564#M122048</link>
      <description>&lt;P&gt;Your expression is wrong. I suspect you are wanting to say....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"If AdminSystemValue is "CDB_AP" or&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If AdminSystemValue is "CDB_CO" or&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If AdminSystemValue is "CDB_CS" or.....etc&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;THEN replace all of the "-" chars in the AdminPartyId String"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In order to do that you need an inline IF. Something like this....&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;row2.AdminSystemValue!=null &amp;amp;&amp;amp; (row2.AdminSystemValue.equals("CDB_AP") ||
row2.AdminSystemValue.equals("CDB_CO") || row2.AdminSystemValue.equals("CDB_CS")) ? row2.AdminPartyId.replaceAll("[-]","") : row2.AdminPartyId&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;I've given an example, not the complete code.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 15:16:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356564#M122048</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-09T15:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid special characters on tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356565#M122049</link>
      <description>&lt;P&gt;Hi, as you see&amp;nbsp;on screenshot other are the filters to get the data I like to have in output. Suppose&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;row2.AdminSystemValue.equals(&lt;/FONT&gt;&lt;FONT color="#2a00ff" size="2"&gt;"CR"&lt;/FONT&gt;&lt;FONT size="2"&gt;)&lt;/FONT&gt; pulls CR data and || is or character to add more filters. Above&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;row2.AdminPartyId.replaceAll(&lt;/FONT&gt;&lt;FONT color="#2a00ff" size="2"&gt;"[-]"&lt;/FONT&gt;&lt;FONT size="2"&gt;, &lt;/FONT&gt;&lt;FONT color="#2a00ff" size="2"&gt;""&lt;/FONT&gt;&lt;FONT size="2"&gt;)&lt;/FONT&gt; is working and I get out as expected. When I put&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;row2.AdminPartyId.replaceAll(&lt;/FONT&gt;&lt;FONT color="#2a00ff" size="2"&gt;"[-]"&lt;/FONT&gt;&lt;FONT size="2"&gt;, &lt;/FONT&gt;&lt;FONT color="#2a00ff" size="2"&gt;""&lt;/FONT&gt;&lt;FONT size="2"&gt;)&lt;/FONT&gt; then get that error shared.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 15:20:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356565#M122049</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-09T15:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid special characters on tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356566#M122050</link>
      <description>&lt;P&gt;This is because&amp;nbsp;&lt;FONT size="2"&gt;row2.AdminSystemValue.equals(&lt;/FONT&gt;&lt;FONT size="2" color="#2a00ff"&gt;"CR"&lt;/FONT&gt;&lt;FONT size="2"&gt;) gives you TRUE OR FALSE, but&amp;nbsp;row2.AdminPartyId.replaceAll(&lt;FONT size="2" color="#2a00ff"&gt;"[-]"&lt;/FONT&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="2" color="#2a00ff"&gt;""&lt;/FONT&gt;) will give you return value after replace.&amp;nbsp;As per my knowledge you can not use different&amp;nbsp;boolean and string value functions in the same function.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 15:26:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356566#M122050</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2018-04-09T15:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid special characters on tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356567#M122051</link>
      <description>&lt;P&gt;You can use an inline IF as I have demonstrated above&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 15:51:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356567#M122051</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-09T15:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid special characters on tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356568#M122052</link>
      <description>&lt;P&gt;Hi, I tried your logic in tMap but it doesn't seem it is working.&lt;/P&gt;&lt;P&gt;I am trying to avoid "-" from&amp;nbsp;AdminPartyId and only want those values given for AdminSystemValue. I can get those values on AdminSystemValue with the logic I have but never for AdminPartyId.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 16:06:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356568#M122052</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-09T16:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid special characters on tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356569#M122053</link>
      <description>&lt;P&gt;You need to give a bit more information. What exactly did you try (ie show the code....copy and paste it here)? What was the error message?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 16:11:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356569#M122053</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-09T16:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid special characters on tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356570#M122054</link>
      <description>&lt;P&gt;Hi, Please forget about the other filters. Now I only have&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;FONT color="#a02000"&gt;row2.AdminPartyId.replaceAll(&lt;/FONT&gt;"[&lt;FONT color="#b22200"&gt;-&lt;/FONT&gt;]","") &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Could you please help me getting rid of "-" character from &lt;FONT color="#a02000" size="4"&gt;AdminPartyId?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 16:23:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356570#M122054</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-09T16:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid special characters on tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356571#M122055</link>
      <description>&lt;P&gt;That should work. The only thing you are possibly missing is a check for null. Are you getting any errors or is it just not removing the "-"? Can you show how this is used in your tMap? A screenshot of your complete tMap may help&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 16:26:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356571#M122055</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-09T16:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid special characters on tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356572#M122056</link>
      <description>&lt;P&gt;Hi, I am getting error with just the filter (&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;FONT color="#a02000"&gt;row2.AdminPartyId.replaceAll(&lt;/FONT&gt;"[&lt;FONT color="#b22200"&gt;-&lt;/FONT&gt;]","") )&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;and below is the error message;&lt;/P&gt;
&lt;P align="left"&gt;&lt;EM&gt;Error Line: 3791&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Detail Message: Type mismatch: cannot convert from String to boolean&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 17:02:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356572#M122056</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-09T17:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid special characters on tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356573#M122057</link>
      <description>&lt;P&gt;Can you please take a screenshot of your tMap? You are leaving out important information. The error...&lt;/P&gt;
&lt;PRE&gt;Type mismatch: cannot convert from String to boolean&lt;/PRE&gt;
&lt;P&gt;....suggests that you are trying to set a boolean value with a String. This suggests to me that either you are setting an incorrect column type OR you are using that logic in a filter. I cannot tell when you post your code. It MUST be a screenshot.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 17:07:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356573#M122057</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-09T17:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid special characters on tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356574#M122058</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Attaching the screenshot. Please let me know if any questions.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lsax"&gt;tmapeg.JPG&lt;/A&gt;</description>
      <pubDate>Mon, 09 Apr 2018 18:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356574#M122058</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-09T18:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid special characters on tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356575#M122059</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Are you&amp;nbsp;using replace function in filter ? if yes then what are you trying to get out put?&lt;/P&gt;&lt;P&gt;You can use variable ports in tMap to clean data first then use that variable port in filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 18:10:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356575#M122059</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2018-04-09T18:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid special characters on tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356576#M122060</link>
      <description>&lt;P&gt;I was trying with replaceAll function to avoid "-". So you think I need to do on Variable ports? Could you please suggest me exactly what I need to mention as expression?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 18:16:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356576#M122060</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-09T18:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid special characters on tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356577#M122061</link>
      <description>&lt;P&gt;try this&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="replaceString.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LtZ3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152007i39CBE25E9EA15AB7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LtZ3.png" alt="0683p000009LtZ3.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 18:23:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Avoid-special-characters-on-tmap/m-p/2356577#M122061</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2018-04-09T18:23:53Z</dc:date>
    </item>
  </channel>
</rss>

