<?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: Tmap conditions working in test but not when executing in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Tmap-conditions-working-in-test-but-not-when-executing/m-p/2310953#M82034</link>
    <description>&lt;P&gt;Thanks a lot TRF, learning every day here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 May 2018 15:34:27 GMT</pubDate>
    <dc:creator>daez</dc:creator>
    <dc:date>2018-05-04T15:34:27Z</dc:date>
    <item>
      <title>Tmap conditions working in test but not when executing</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-conditions-working-in-test-but-not-when-executing/m-p/2310951#M82032</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm&amp;nbsp;fronting something strange with my Tmap conditions.&lt;BR /&gt;I have one row in input; with field "State". This state is a string : "in stock", all my input "State" has this value. I want it to be in the output 1 if its "in stock" and 0 for any others values. So i created a var with expressions :&lt;/P&gt;
&lt;P&gt;row7.State=="in stock"?"1":"0"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;named NewState, and linked it to my output " State". Before that, in the expression constructor, I did a test. I put as value " in stock" in row.7 state, clicked " Test " and it returned "1". I thought all was fine. But when I execute my job, all my state get "0".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How comes the Tmap Expression Builder's Test returns me the good value, but the output filed I get is false? What am I missing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 15:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-conditions-working-in-test-but-not-when-executing/m-p/2310951#M82032</guid>
      <dc:creator>daez</dc:creator>
      <dc:date>2018-05-04T15:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap conditions working in test but not when executing</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-conditions-working-in-test-but-not-when-executing/m-p/2310952#M82033</link>
      <description>&lt;P&gt;You should never use == to compare 2 strings.&lt;/P&gt;&lt;P&gt;Use&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"in stock".equalsIgnoreCase(row7.State) ? "1" : "0"&amp;nbsp;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 May 2018 15:29:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-conditions-working-in-test-but-not-when-executing/m-p/2310952#M82033</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-05-04T15:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap conditions working in test but not when executing</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-conditions-working-in-test-but-not-when-executing/m-p/2310953#M82034</link>
      <description>&lt;P&gt;Thanks a lot TRF, learning every day here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 15:34:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-conditions-working-in-test-but-not-when-executing/m-p/2310953#M82034</guid>
      <dc:creator>daez</dc:creator>
      <dc:date>2018-05-04T15:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap conditions working in test but not when executing</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-conditions-working-in-test-but-not-when-executing/m-p/2310954#M82035</link>
      <description>You're welcome</description>
      <pubDate>Fri, 04 May 2018 15:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-conditions-working-in-test-but-not-when-executing/m-p/2310954#M82035</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-05-04T15:44:45Z</dc:date>
    </item>
  </channel>
</rss>

