<?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: Delete white spaces in a tFileInputDelimited in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Delete-white-spaces-in-a-tFileInputDelimited/m-p/2341566#M109508</link>
    <description>I tried this solution but doesn't work; Talend still shows null values on console.&lt;BR /&gt;Thank you for your sugestion</description>
    <pubDate>Tue, 20 May 2014 23:51:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-05-20T23:51:35Z</dc:date>
    <item>
      <title>Delete white spaces in a tFileInputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Delete-white-spaces-in-a-tFileInputDelimited/m-p/2341564#M109506</link>
      <description>Hi! I have a job with a tFileInputDelimited; some fields of this file have white spaces and when I run the job in Talend 5.4.1 get null values. Fields are BigDecimal type. How can I solve this? 
&lt;BR /&gt;I attach some pictures of file and output of null values. The fields are in yellow. 
&lt;BR /&gt;Thank you. 
&lt;BR /&gt;Regards 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MED5.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128531iDD00107457F908C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MED5.jpg" alt="0683p000009MED5.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEBt.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130696iD3140656736328EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEBt.jpg" alt="0683p000009MEBt.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 20 May 2014 22:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Delete-white-spaces-in-a-tFileInputDelimited/m-p/2341564#M109506</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-20T22:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Delete white spaces in a tFileInputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Delete-white-spaces-in-a-tFileInputDelimited/m-p/2341565#M109507</link>
      <description>Deleting white spaces is easy, you can just do FieldName.replaceAll(" ","") or FieldName.replaceAll("\\s","") if the white space is some character other than a common space. I'm not sure why you're getting the null error though, sorry I couldn't help more.
&lt;BR /&gt;
&lt;BR /&gt;However since you're performing manipulations on the fields so if you have an empty field you'll get a nullpointerexception error. To fix that you just need to check if the field is empty, like this:
&lt;BR /&gt;!Relational.ISNULL(FieldName) ? FieldName.replaceAll("\\s","") : null
&lt;BR /&gt;Basically that checks if the field isn't null. If it isn't, it removes the whitespaces. However if the field is null, then it adds a null value without giving you a nullpointer exception.</description>
      <pubDate>Tue, 20 May 2014 22:41:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Delete-white-spaces-in-a-tFileInputDelimited/m-p/2341565#M109507</guid>
      <dc:creator>Jj5</dc:creator>
      <dc:date>2014-05-20T22:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Delete white spaces in a tFileInputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Delete-white-spaces-in-a-tFileInputDelimited/m-p/2341566#M109508</link>
      <description>I tried this solution but doesn't work; Talend still shows null values on console.&lt;BR /&gt;Thank you for your sugestion</description>
      <pubDate>Tue, 20 May 2014 23:51:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Delete-white-spaces-in-a-tFileInputDelimited/m-p/2341566#M109508</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-20T23:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Delete white spaces in a tFileInputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Delete-white-spaces-in-a-tFileInputDelimited/m-p/2341567#M109509</link>
      <description>Hi,
&lt;BR /&gt;If the field is big decimal, you can remove the white spaces. 
&lt;BR /&gt;- First need to convert/parse your input fields to string type
&lt;BR /&gt;- Delete white spaces using java trim/replace
&lt;BR /&gt;- Convert back to original data type
&lt;BR /&gt;Your middle column in the screenshot does not look like double, instead has a "-" in the field contents
&lt;BR /&gt;Have you created metadata for your input file and able to view contents?
&lt;BR /&gt;Try this.
&lt;BR /&gt;Vaibhav</description>
      <pubDate>Wed, 21 May 2014 04:50:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Delete-white-spaces-in-a-tFileInputDelimited/m-p/2341567#M109509</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-21T04:50:59Z</dc:date>
    </item>
  </channel>
</rss>

