<?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: Handling NULLS with also getting the right output in tMap String Method in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Handling-NULLS-with-also-getting-the-right-output-in-tMap-String/m-p/2209454#M8273</link>
    <description>&lt;P&gt;Hi Andrew,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Could you please share a sample file with 3 records for verification from our end?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; It should work properly. Also could you please print&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;row4.X and the output of your expression side by side and check the results?&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; I believe there is some issue in input data parsing from your file and printing the data will give you some clue.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2019 03:57:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-03-04T03:57:38Z</dc:date>
    <item>
      <title>Handling NULLS with also getting the right output in tMap String Method</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handling-NULLS-with-also-getting-the-right-output-in-tMap-String/m-p/2209452#M8271</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Hello,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I have a Fixed Width File with a bunch of Codes included in every column. They Range from A-Z and 1-9. They only contain One value for each column. I'm trying to create a string method where it will handle the NULL Data from the lookup table and if the value "X" in the table, Insert a "True" string value in the output file column. For some reason my output file is only returning False values for every row. Seems like its not recognizing my .equals("X") statement.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Can anyone assist with my current string method syntax to allow for true values to show when the right code value is returned in the column.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MPFCodes.PNG" style="width: 725px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2sh.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150796iE872268F52D74A96/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2sh.png" alt="0683p000009M2sh.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Relational.ISNULL( row4.X )?"False":&amp;nbsp;( row4.X .&lt;FONT color="#FF0000"&gt;equals("X")&lt;/FONT&gt;?"True":"False")&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Andrew&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 15:26:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handling-NULLS-with-also-getting-the-right-output-in-tMap-String/m-p/2209452#M8271</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-01T15:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Handling NULLS with also getting the right output in tMap String Method</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handling-NULLS-with-also-getting-the-right-output-in-tMap-String/m-p/2209453#M8272</link>
      <description>&lt;P&gt;Try this:&lt;BR /&gt;&lt;SPAN&gt;Relational.ISNULL( row4.X )?"AAA":&amp;nbsp;( row4.X&lt;FONT color="#333333"&gt;.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color="#333333"&gt;equals("X")&lt;/FONT&gt;&lt;SPAN&gt;?"BBB":"CCC")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And check the result. If it returns BBB or CCC it means that system check&amp;nbsp;row4.X&lt;FONT color="#333333"&gt;.&lt;/FONT&gt;&lt;FONT color="#333333"&gt;equals("X")&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If result is AAA it means that&amp;nbsp;row4.X IS NULL end system doesn't event check&amp;nbsp;row4.X&lt;FONT color="#333333"&gt;.&lt;/FONT&gt;&lt;FONT color="#333333"&gt;equals("X").&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2019 20:54:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handling-NULLS-with-also-getting-the-right-output-in-tMap-String/m-p/2209453#M8272</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-02T20:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Handling NULLS with also getting the right output in tMap String Method</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handling-NULLS-with-also-getting-the-right-output-in-tMap-String/m-p/2209454#M8273</link>
      <description>&lt;P&gt;Hi Andrew,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Could you please share a sample file with 3 records for verification from our end?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; It should work properly. Also could you please print&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;row4.X and the output of your expression side by side and check the results?&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; I believe there is some issue in input data parsing from your file and printing the data will give you some clue.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 03:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handling-NULLS-with-also-getting-the-right-output-in-tMap-String/m-p/2209454#M8273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-04T03:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Handling NULLS with also getting the right output in tMap String Method</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handling-NULLS-with-also-getting-the-right-output-in-tMap-String/m-p/2209455#M8274</link>
      <description>&lt;P&gt;Hey Nikhil,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is my Output for my tFixedFlowInput/tMap/tLogRow component sequence. I attached 3 records of the input file to this post. Let me know if you're seeing an issue with the file.&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="tfixed.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2un.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128914iD29034AF870515B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2un.png" alt="0683p000009M2un.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tMap.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2dT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148564iE5083734FFAE6E1D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2dT.png" alt="0683p000009M2dT.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="output.PNG" style="width: 398px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2nY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152779i9AC39C324AF20579/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2nY.png" alt="0683p000009M2nY.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Andrew&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LuhR"&gt;donorflag.csv&lt;/A&gt;</description>
      <pubDate>Mon, 04 Mar 2019 15:07:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handling-NULLS-with-also-getting-the-right-output-in-tMap-String/m-p/2209455#M8274</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-04T15:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Handling NULLS with also getting the right output in tMap String Method</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handling-NULLS-with-also-getting-the-right-output-in-tMap-String/m-p/2209456#M8275</link>
      <description>&lt;P&gt;Hi Andrew,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The input file you have shared with me is a csv file where columns are separated by comma. So instead of tFixedFlowInput, you should use tfileinputdelimitedcsv.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2kH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155652i0389353C72A9EB8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2kH.png" alt="0683p000009M2kH.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Once you do this, you will get all the columns in right order. Please refer the tMap below where I have used the function in your job (Please note that I have made the change for column X only. You need to do the same for other columns if required.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0wY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156519iD5844234B5C03889/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0wY.png" alt="0683p000009M0wY.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The output is showing as True or False as showing below.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2t2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148195i691417FABEAC6247/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2t2.png" alt="0683p000009M2t2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hope I have answered your query &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 15:45:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handling-NULLS-with-also-getting-the-right-output-in-tMap-String/m-p/2209456#M8275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-04T15:45:48Z</dc:date>
    </item>
  </channel>
</rss>

