<?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: remove null from comma separated csv file without removing the &amp;quot;null&amp;quot; from string in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/remove-null-from-comma-separated-csv-file-without-removing-the/m-p/2297337#M69924</link>
    <description>&lt;P&gt;Hi as null is at the end of the string you can try "null$" in the tReplace.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Apr 2022 08:03:32 GMT</pubDate>
    <dc:creator>gjeremy1617088143</dc:creator>
    <dc:date>2022-04-14T08:03:32Z</dc:date>
    <item>
      <title>remove null from comma separated csv file without removing the "null" from string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/remove-null-from-comma-separated-csv-file-without-removing-the/m-p/2297336#M69923</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;Thanks to this wonderful forum in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have converted a JSON to CSV file with comma separated string values which contains &lt;B&gt;&lt;I&gt;null &lt;/I&gt;&lt;/B&gt;at the end or in middle, so I want to remove the &lt;B&gt;&lt;I&gt;null&lt;/I&gt; &lt;/B&gt;without touching the character which may consist "null" inside the word. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Input&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Object_id, attribute_value&lt;/P&gt;&lt;P&gt;001,"hello world,&lt;B&gt;&lt;I&gt;null&lt;/I&gt;&lt;/B&gt;"&lt;/P&gt;&lt;P&gt;002,"you can ignore &lt;U&gt;nullable&lt;/U&gt; date,&lt;B&gt;&lt;I&gt;null&lt;/I&gt;&lt;/B&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Expected output&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Object_id, attribute_value&lt;/P&gt;&lt;P&gt;001,"hello world,"&lt;/P&gt;&lt;P&gt;002,"you can ignore nullable date,"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use tReplace but it removes the null from the string as well making it&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;002,"you can ignore able date," -----&amp;gt; &lt;/P&gt;&lt;I&gt;incorrect&lt;/I&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way I can handle the null?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SD3156&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:01:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/remove-null-from-comma-separated-csv-file-without-removing-the/m-p/2297336#M69923</guid>
      <dc:creator>SD3156</dc:creator>
      <dc:date>2024-11-15T23:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: remove null from comma separated csv file without removing the "null" from string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/remove-null-from-comma-separated-csv-file-without-removing-the/m-p/2297337#M69924</link>
      <description>&lt;P&gt;Hi as null is at the end of the string you can try "null$" in the tReplace.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 08:03:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/remove-null-from-comma-separated-csv-file-without-removing-the/m-p/2297337#M69924</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2022-04-14T08:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: remove null from comma separated csv file without removing the "null" from string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/remove-null-from-comma-separated-csv-file-without-removing-the/m-p/2297338#M69925</link>
      <description>&lt;P&gt;you can also try something like this in a tJavaRow :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;String[] arrays=&lt;/P&gt;&lt;P&gt;(input_row.&amp;nbsp;attribute_value).split(",");&lt;/P&gt;&lt;P&gt;String ent = "";&lt;/P&gt;&lt;P&gt;for(int i=0;i&amp;lt; arrays.length;i++)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;if(!("null").equals(arrays[i]))&lt;/P&gt;&lt;P&gt;ent = ent + arrays[i] + ",";&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;output_row.Object_id = input_row.Object_id;&lt;/P&gt;&lt;P&gt;output_row.&amp;nbsp;attribute_value = ent.replaceAll(",$","");&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 08:12:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/remove-null-from-comma-separated-csv-file-without-removing-the/m-p/2297338#M69925</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2022-04-14T08:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: remove null from comma separated csv file without removing the "null" from string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/remove-null-from-comma-separated-csv-file-without-removing-the/m-p/2297339#M69926</link>
      <description>&lt;P&gt;&lt;A href="https://community.talend.com/s/profile/0055b00000Ll14kAAB" alt="https://community.talend.com/s/profile/0055b00000Ll14kAAB" target="_blank"&gt;gjeremy1617088143&lt;/A&gt; thanks this trick worked for all the values ending with 'null'&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 15:29:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/remove-null-from-comma-separated-csv-file-without-removing-the/m-p/2297339#M69926</guid>
      <dc:creator>SD3156</dc:creator>
      <dc:date>2022-04-14T15:29:09Z</dc:date>
    </item>
  </channel>
</rss>

