<?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 conditional formula in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224155#M16985</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Seems you are trying to load the String value to a database like DB2 where the data is in different format.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Could you please share the screen shot of the job flow and the component where it is erroring out? There could be some data type mismatch but getting the full error and screen shot of the job only can help us to dig further.&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;</description>
    <pubDate>Wed, 06 Mar 2019 15:21:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-03-06T15:21:54Z</dc:date>
    <item>
      <title>tMap conditional formula</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224147#M16977</link>
      <description>&lt;P&gt;I am trying to write a condition in my tMap translation.&amp;nbsp; It is giving me an error when trying to run.&amp;nbsp; Essentially, I have a required field I am trying to populate on the Output.&amp;nbsp; From the input, I first want to check one of the columns for null.&amp;nbsp; If it is null, I want to use a different column to populate output.&amp;nbsp; Here is what I have written, not sure what I am missing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;row1.Field1 = null ? row1.Field2 : row1.Field1&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 14:01:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224147#M16977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-06T14:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: tMap conditional formula</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224148#M16978</link>
      <description>&lt;P&gt;Also, I have tried comparing using = and ==.&amp;nbsp; &amp;nbsp;Either way, I am getting an error when the first field is blank and it is not populating it the 2nd field.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 14:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224148#M16978</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-06T14:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: tMap conditional formula</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224149#M16979</link>
      <description>&lt;DIV class="lia-quilt-column lia-quilt-column-18 lia-quilt-column-left lia-quilt-column-main-left"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;&lt;DIV class="lia-message-body lia-component-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;(row1.Field1 == null ||&amp;nbsp;row1.Field1.trim().length() == 0 )? row1.Field2 : row1.Field1&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-rating-metoo lia-component-me-too"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-06 lia-quilt-column-right lia-quilt-column-main-right"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;&lt;DIV class="LabelsForArticle lia-component-labels"&gt;&lt;DIV class="LabelsList"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Mar 2019 14:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224149#M16979</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-03-06T14:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: tMap conditional formula</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224150#M16980</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPI1AAO"&gt;@steeld95&lt;/A&gt;&amp;nbsp; the one which&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LP7CAAW"&gt;@uganesh&lt;/A&gt;&amp;nbsp; sent will work, even i used it before, specially when we have empties other then null it will be very helpful&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 15:06:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224150#M16980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-06T15:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: tMap conditional formula</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224151#M16981</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LP7CAAW"&gt;@uganesh&lt;/A&gt;.&amp;nbsp; It is now giving me a different error.&amp;nbsp; It is saying:&lt;/P&gt; 
&lt;P&gt;Token&amp;lt;END-OF-STATEMENT&amp;gt; was not valid. Valid tokens: ? : &amp;lt;FLOAT&amp;gt; &amp;lt;BIGINT&amp;gt; &amp;lt;DECIMAL&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It is all string fields.&amp;nbsp; The input fields are stings and the output field is a string.&amp;nbsp; &amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I appreciate your help!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 15:07:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224151#M16981</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-06T15:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: tMap conditional formula</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224152#M16982</link>
      <description>&lt;P&gt;(row1.Field1 == null || StringHandling.LEN(row1.Field1)== 0 )? row1.Field2 : row1.Field1&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 15:18:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224152#M16982</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-06T15:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: tMap conditional formula</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224153#M16983</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error looks unrelated.Can you please verify and confirm that , this error comes only with above expression.&lt;/P&gt;
&lt;P&gt;Are you using any database Query before. usually these errors are databse related.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can you please give your job screenshots.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 15:19:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224153#M16983</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-03-06T15:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: tMap conditional formula</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224154#M16984</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LP7CAAW"&gt;@uganesh&lt;/A&gt;&amp;nbsp; the above function i mentioned just now may work, let&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPI1AAO"&gt;@steeld95&lt;/A&gt;&amp;nbsp;try it and let us know&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please dont forget to give kudos and accept solution if it worked&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPI1AAO"&gt;@steeld95&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 15:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224154#M16984</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-06T15:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: tMap conditional formula</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224155#M16985</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Seems you are trying to load the String value to a database like DB2 where the data is in different format.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Could you please share the screen shot of the job flow and the component where it is erroring out? There could be some data type mismatch but getting the full error and screen shot of the job only can help us to dig further.&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;</description>
      <pubDate>Wed, 06 Mar 2019 15:21:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224155#M16985</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-06T15:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: tMap conditional formula</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224156#M16986</link>
      <description>&lt;P&gt;They are both actually strings.&amp;nbsp; I am trying to move a string to a string.&amp;nbsp; I have definitely narrowed it down to this translation, because if I just put in default text in that field to test it, it runs the job with no errors.&amp;nbsp; &amp;nbsp;I have confirmed, both fields in the input and the output are strings. Strange behavior.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 18:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224156#M16986</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-06T18:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: tMap conditional formula</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224157#M16987</link>
      <description>Can you print field1 and field2 as separate cols and check no error their.&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Mar 2019 18:50:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224157#M16987</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-03-06T18:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: tMap conditional formula</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224158#M16988</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Could you please share the screen shots of the job flow, problematic component and schema details?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Please also share the target DB. It should be something minor. Once we see the flow, we will get better idea.&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;</description>
      <pubDate>Thu, 07 Mar 2019 04:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224158#M16988</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T04:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: tMap conditional formula</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224159#M16989</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPFSAA4"&gt;@ksingh&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000006eKOgAAM"&gt;@nthampi&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LP7CAAW"&gt;@uganesh&lt;/A&gt;&amp;nbsp; &amp;nbsp;Thank you all for your help!&lt;/P&gt; 
&lt;P&gt;I made a few adjustments and got it to work.&amp;nbsp; Here is the final expression I used:&lt;/P&gt; 
&lt;P&gt;row1.NAME != null &amp;amp;&amp;amp; row1.NAME.trim().length() != 0 ? row1.NAME : row1.NUM&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I really appreciate all of&amp;nbsp; your input.&amp;nbsp; I'm new to Talend and this is helpful.&amp;nbsp; This board is great. I will be now be a longtime user.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 14:29:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224159#M16989</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T14:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: tMap conditional formula</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224160#M16990</link>
      <description>&lt;P&gt;Weird But Good.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 14:52:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224160#M16990</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-03-07T14:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: tMap conditional formula</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224161#M16991</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPI1AAO"&gt;@steeld95&lt;/A&gt;&amp;nbsp;Oh Am almost close, thanks for updating the result&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 14:54:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-conditional-formula/m-p/2224161#M16991</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T14:54:29Z</dc:date>
    </item>
  </channel>
</rss>

