<?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 N/A with integer in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Replace-N-A-with-integer/m-p/2242493#M29301</link>
    <description>&lt;P&gt;It got resolved through casting&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jun 2017 14:32:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-01T14:32:36Z</dc:date>
    <item>
      <title>Replace N/A with integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Replace-N-A-with-integer/m-p/2242489#M29297</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a excel file like :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE&gt;
 &lt;TBODY&gt;
  &lt;TR&gt;
   &lt;TD&gt;ID&lt;/TD&gt;
   &lt;TD&gt;Name&lt;/TD&gt;
   &lt;TD&gt;ProjectID&amp;nbsp;&lt;/TD&gt;
   &lt;TD&gt;ProjectName&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;1&lt;/TD&gt;
   &lt;TD&gt;test&lt;/TD&gt;
   &lt;TD&gt;1&lt;/TD&gt;
   &lt;TD&gt;Banking&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;2&lt;/TD&gt;
   &lt;TD&gt;test1&lt;/TD&gt;
   &lt;TD&gt;2&lt;/TD&gt;
   &lt;TD&gt;Healthcare&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;3&lt;/TD&gt;
   &lt;TD&gt;test2&lt;/TD&gt;
   &lt;TD&gt;2&lt;/TD&gt;
   &lt;TD&gt;Healthcare&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;4&lt;/TD&gt;
   &lt;TD&gt;test3&lt;/TD&gt;
   &lt;TD&gt;1&lt;/TD&gt;
   &lt;TD&gt;Banking&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;5&lt;/TD&gt;
   &lt;TD&gt;test4&lt;/TD&gt;
   &lt;TD&gt;N/A&lt;/TD&gt;
   &lt;TD&gt;N/A&lt;/TD&gt;
  &lt;/TR&gt;
 &lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am creating dimension table out of it for Project details through SCD component , projectid should be integer there but i am getting error as we have 'N/A' in the column.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried tFilterRow component and expressions in tmap to replace N/A with integer but it dint work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically entry in destination database should be :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE&gt;
 &lt;TBODY&gt;
  &lt;TR&gt;
   &lt;TD&gt;ProjectID&amp;nbsp;&lt;/TD&gt;
   &lt;TD&gt;ProjectName&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;1&lt;/TD&gt;
   &lt;TD&gt;Banking&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;2&lt;/TD&gt;
   &lt;TD&gt;Healthcare&lt;/TD&gt;
  &lt;/TR&gt;
 &lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Arvind Jha&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 11:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Replace-N-A-with-integer/m-p/2242489#M29297</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-01T11:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Replace N/A with integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Replace-N-A-with-integer/m-p/2242490#M29298</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;What happens when you open the file in Excel?&lt;/P&gt; 
&lt;P&gt;Do you have a "N/A" - which means you have&amp;nbsp;the cell is a string - or do you have '#N/A' - which means a formula is used in this cell but returns an error?&lt;/P&gt; 
&lt;P&gt;On the Talend side, how did you try to filter undesirable lines?&lt;/P&gt; 
&lt;P&gt;Using tFilterRow:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Luob.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138722iAE7E604643967B8E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Luob.png" alt="0683p000009Luob.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;or using tMap:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Luog.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152618i4BD0C95332485790/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Luog.png" alt="0683p000009Luog.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 12:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Replace-N-A-with-integer/m-p/2242490#M29298</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-06-01T12:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Replace N/A with integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Replace-N-A-with-integer/m-p/2242491#M29299</link>
      <description>&lt;P&gt;What error are you getting? I assume it is an error indicating that the column type is not Integer. If that is the case you will have to treat the column as a String, check to see if the value can be converted to an integer and then deal with filtering using that logic. Casting between String to Integer is pretty easy.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 12:36:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Replace-N-A-with-integer/m-p/2242491#M29299</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-01T12:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Replace N/A with integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Replace-N-A-with-integer/m-p/2242492#M29300</link>
      <description>&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually what i observed was in source we have Data type as String[N/A] and at destination database it is integer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So tfilterRow doesn't work as column still remains string so i converted to integer using&amp;nbsp;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;EM&gt;Integer&lt;/EM&gt;&lt;SPAN&gt;.parseInt()) , then passed it onto database .The same was accomplished using tmap.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So even if there was no N/A and source data type would have been string i would have to parse it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 14:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Replace-N-A-with-integer/m-p/2242492#M29300</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-01T14:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Replace N/A with integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Replace-N-A-with-integer/m-p/2242493#M29301</link>
      <description>&lt;P&gt;It got resolved through casting&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 14:32:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Replace-N-A-with-integer/m-p/2242493#M29301</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-01T14:32:36Z</dc:date>
    </item>
  </channel>
</rss>

