<?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: Output producing unexpected null value in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Output-producing-unexpected-null-value/m-p/2290778#M64028</link>
    <description>&lt;P&gt;So I resolved this by changing the tmap expression to this&lt;/P&gt;&lt;P&gt;(row4.CountryCode.equals("GB"))&amp;amp;&amp;amp;row1.Postcode.equals("") ?&lt;/P&gt;&lt;P&gt;"null_postcode"&amp;nbsp;:&lt;/P&gt;&lt;P&gt;(row4.CountryCode.equals("GB"))&amp;amp;&amp;amp;row1.Postcode!=null ?&lt;/P&gt;&lt;P&gt;row1.Postcode.replace(" ", "") :&lt;/P&gt;&lt;P&gt;row4.CountryCode.equals("")||row4.CountryCode.equals("N/A") ?&lt;/P&gt;&lt;P&gt;"NO_COUNTRY" :&amp;nbsp;&lt;/P&gt;&lt;P&gt;row6.CountryName&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But my question is now, why would it matter which order these are applied in as to whether it returns the correct values?&lt;/P&gt;</description>
    <pubDate>Thu, 10 Sep 2020 12:22:26 GMT</pubDate>
    <dc:creator>JM39</dc:creator>
    <dc:date>2020-09-10T12:22:26Z</dc:date>
    <item>
      <title>Output producing unexpected null value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Output-producing-unexpected-null-value/m-p/2290777#M64027</link>
      <description>&lt;P&gt;Hello, can anyone help or point me in the right direction on this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my tMap, I have the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;row4.CountryCode==null||row4.CountryCode.equals("N/A") ?&lt;/P&gt;&lt;P&gt;"NO_COUNTRY" :&lt;/P&gt;&lt;P&gt;(row4.CountryCode.equals("GB"))&amp;amp;&amp;amp;row3.Postcode!=null ?&lt;/P&gt;&lt;P&gt;row3.Postcode.replace(" ", "") :&lt;/P&gt;&lt;P&gt;(row4.CountryCode.equals("GB"))&amp;amp;&amp;amp;row3.Postcode==null|| row3.Postcode.equals("")?&lt;/P&gt;&lt;P&gt;"NO_POSTCODE" :&lt;/P&gt;&lt;P&gt;row6.CountryName&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I'm trying to say if the country code is null OR N/A then put NO_COUNTRY, else if&lt;/P&gt;&lt;P&gt;the country code is GB &amp;amp; the postcode is not null then put the postcode, else if&lt;/P&gt;&lt;P&gt;the country code is GB and the postcode is null then put NO_POSTCODE, else&lt;/P&gt;&lt;P&gt;put the country name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it works for most records, but it's this part which doesn't seem to work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(row4.CountryCode.equals("GB"))&amp;amp;&amp;amp;row3.Postcode==null|| row3.Postcode.equals("")?&lt;/P&gt;&lt;P&gt;"NO_POSTCODE"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have rows in my input where the country code is GB and the postcode is null, but it's returning a null value in the output instead of NO_POSTCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:31:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Output-producing-unexpected-null-value/m-p/2290777#M64027</guid>
      <dc:creator>JM39</dc:creator>
      <dc:date>2024-11-16T01:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Output producing unexpected null value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Output-producing-unexpected-null-value/m-p/2290778#M64028</link>
      <description>&lt;P&gt;So I resolved this by changing the tmap expression to this&lt;/P&gt;&lt;P&gt;(row4.CountryCode.equals("GB"))&amp;amp;&amp;amp;row1.Postcode.equals("") ?&lt;/P&gt;&lt;P&gt;"null_postcode"&amp;nbsp;:&lt;/P&gt;&lt;P&gt;(row4.CountryCode.equals("GB"))&amp;amp;&amp;amp;row1.Postcode!=null ?&lt;/P&gt;&lt;P&gt;row1.Postcode.replace(" ", "") :&lt;/P&gt;&lt;P&gt;row4.CountryCode.equals("")||row4.CountryCode.equals("N/A") ?&lt;/P&gt;&lt;P&gt;"NO_COUNTRY" :&amp;nbsp;&lt;/P&gt;&lt;P&gt;row6.CountryName&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But my question is now, why would it matter which order these are applied in as to whether it returns the correct values?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 12:22:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Output-producing-unexpected-null-value/m-p/2290778#M64028</guid>
      <dc:creator>JM39</dc:creator>
      <dc:date>2020-09-10T12:22:26Z</dc:date>
    </item>
  </channel>
</rss>

