<?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-Double type Division in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tmap-Double-type-Division/m-p/2262611#M43022</link>
    <description>First of all - You are use left JOIN (it is default)
&lt;BR /&gt;it mean if for first row - no matched rows in lookup file, You will have NullPointer error at least for index function, You must handle NULL
&lt;BR /&gt;run Job in debug mode for check - what coming from XML, then manually find it in lookup file and etc&amp;nbsp;</description>
    <pubDate>Sat, 15 Oct 2016 06:47:29 GMT</pubDate>
    <dc:creator>vapukov</dc:creator>
    <dc:date>2016-10-15T06:47:29Z</dc:date>
    <item>
      <title>tmap-Double type Division</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-Double-type-Division/m-p/2262605#M43016</link>
      <description>I have been bashing my head against the wall for like 5 hours now trying to figure out why in the world double Outpucol = 315.0/23.0; is telling me that answer is 315.0 
&lt;BR /&gt; 
&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial, " helvetica="" neue=""&gt;We have talend tool uses java code.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial, " helvetica="" neue=""&gt;&lt;B&gt;Input:&lt;/B&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial, " helvetica="" neue=""&gt;in tmap component Output mapping field Expression is&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;Outputcol----&amp;gt;row1.inputcol=="CS"?Double.valueOf(Var.Var3)/Double.valueOf(Var.Var5):Double.valueOf(Var.Var3)&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial, " helvetica="" neue=""&gt;&lt;B&gt;Symptom :&lt;/B&gt;&amp;nbsp;when running the job not getting any error on execution. But at the same time not getting desired output of division of double.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial, " helvetica="" neue=""&gt;&lt;B&gt;We also tried&lt;/B&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;firstdouble.divide(secondDouble)&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial, " helvetica="" neue=""&gt;Is there a alternate way or possible workaround for such values division?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial, " helvetica="" neue=""&gt;Thanks in advance!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Sat, 16 Nov 2024 10:19:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-Double-type-Division/m-p/2262605#M43016</guid>
      <dc:creator>gt0731</dc:creator>
      <dc:date>2024-11-16T10:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: tmap-Double type Division</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-Double-type-Division/m-p/2262606#M43017</link>
      <description>just need double check source data and logic, all must work 
&lt;BR /&gt;better to change == for equals() and also trim all input column (advanced settings or manually) - "CS" !=" CS" 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBsk.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145441i453923D89AC6AC5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBsk.png" alt="0683p000009MBsk.png" /&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBlu.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144585i8AF05F6A13A6C4FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBlu.png" alt="0683p000009MBlu.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBsp.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140961i4821D771F5E130C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBsp.png" alt="0683p000009MBsp.png" /&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBsu.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157175i3E6D75A2C592F84F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBsu.png" alt="0683p000009MBsu.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 14 Oct 2016 04:06:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-Double-type-Division/m-p/2262606#M43017</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2016-10-14T04:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: tmap-Double type Division</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-Double-type-Division/m-p/2262607#M43018</link>
      <description>I will advice use&amp;nbsp;
&lt;FONT size="2"&gt;&lt;FONT face="consolas, monaco, " bitstream="" vera="" sans="" mono=""&gt;row1.inputcol.equals("CS") in place of &lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT size="2"&gt;&lt;FONT face="consolas, monaco, " bitstream="" vera="" sans="" mono=""&gt;row1.inputcol == "CS"&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Fri, 14 Oct 2016 05:07:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-Double-type-Division/m-p/2262607#M43018</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-14T05:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: tmap-Double type Division</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-Double-type-Division/m-p/2262608#M43019</link>
      <description>Thanks for reply. I resolved the error by using &amp;nbsp;above mentioned expression. 
&lt;BR /&gt;Just after running the job getting &amp;nbsp;Null exception &amp;nbsp;error &amp;nbsp;which is more pain to identify where it comes from: 
&lt;BR /&gt;Here is complete detail on it. 
&lt;BR /&gt; 
&lt;B&gt;Expression used in tmap&amp;nbsp;&lt;/B&gt; 
&lt;BR /&gt; 
&lt;B&gt;code type var2:&lt;/B&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;row2.col3.equals("CS")?row2.col1.substring(0,row2.col1.lastIndexOf("-")+1)+"01":row2.col1&amp;nbsp;&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Calling in Output field as External ID 
&lt;BR /&gt; 
&lt;PRE&gt;Var.Var1+"-2016-"+TalendDate.formatDate("MMMM",row1.Date)+"-"+Var.Var2;&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;For ex: &amp;nbsp;my Stockcode Look like ABC-BCD-5OZ-24 
&lt;BR /&gt;want to fetch &amp;nbsp;this as &amp;nbsp;ABC-BCD-5OZ-01 
&lt;BR /&gt;using this expression 
&lt;BR /&gt;row2.col3.equals("CS")?row2.col1.substring(0,row2.col1.lastIndexOf("-")+1)+"01":row2.col1&amp;nbsp; 
&lt;BR /&gt;Extrnal ID &amp;nbsp;Looks like in Output section is&amp;nbsp; 
&lt;BR /&gt;Concatenation of Var.Var1+"-2016-"+TalendDate.formatDate("MMMM",row1.Date)+"-"+Var.Var2; 
&lt;BR /&gt;means &amp;nbsp; &amp;nbsp;ABCD-2016-November-ABC-BCD-5OZ-01 
&lt;BR /&gt;But Due to null pointer error&amp;nbsp; 
&lt;BR /&gt;&amp;nbsp;Debug run is answering &amp;nbsp; &amp;nbsp;ABCD-2016-November-null. 
&lt;BR /&gt;Any help on it would be much appreciated !&amp;nbsp; 
&lt;BR /&gt;Thanks for valueable time. 
&lt;BR /&gt; 
&lt;BR /&gt;Job design&amp;nbsp; 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/270233/JobDesign.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBsz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142479i74555D72757E0B62/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBsz.png" alt="0683p000009MBsz.png" /&gt;&lt;/span&gt;&lt;/A&gt; 
&lt;BR /&gt;Getting null pointer exception&amp;nbsp; 
&lt;BR /&gt;Stacktrace is : 
&lt;BR /&gt; 
&lt;PRE&gt;Exception in component tXMLMap_1&lt;BR /&gt;java.lang.NullPointerException&lt;BR /&gt;	at bigdata.copy_of_forecastftpsuccessread_0_1.Copy_of_ForecastFTPSuccessRead.tFileList_1Process(Copy_of_ForecastFTPSuccessRead.java:1740)&lt;BR /&gt;	at bigdata.copy_of_forecastftpsuccessread_0_1.Copy_of_ForecastFTPSuccessRead.runJobInTOS(Copy_of_ForecastFTPSuccessRead.java:4053)&lt;BR /&gt;	at bigdata.copy_of_forecastftpsuccessread_0_1.Copy_of_ForecastFTPSuccessRead.main(Copy_of_ForecastFTPSuccessRead.java:3852)&lt;BR /&gt;2016-10-14&amp;nbsp;&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt;Here is mapping screenshot : 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/270233/MappingScreen.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBnr.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139594iA02BE8ED9CF1FEF1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBnr.png" alt="0683p000009MBnr.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBib.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135269i806B5CD38833D2A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBib.png" alt="0683p000009MBib.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 14 Oct 2016 16:26:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-Double-type-Division/m-p/2262608#M43019</guid>
      <dc:creator>gt0731</dc:creator>
      <dc:date>2016-10-14T16:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: tmap-Double type Division</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-Double-type-Division/m-p/2262609#M43020</link>
      <description>Of course! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;because Your flow "row2" not have col1 and col2 (it was in my example)&lt;BR /&gt;change them to Your name of columns&lt;BR /&gt;it look like You provide there one formulas and on screenshort - completely other</description>
      <pubDate>Sat, 15 Oct 2016 00:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-Double-type-Division/m-p/2262609#M43020</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2016-10-15T00:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: tmap-Double type Division</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-Double-type-Division/m-p/2262610#M43021</link>
      <description>here &amp;nbsp;i replaced &amp;nbsp;the &amp;nbsp;exact expression of &amp;nbsp;Var2 : 
&lt;BR /&gt;row2.OtherUom.equals("CS")?row2.StockCode.substring(0,row2.StockCode.lastIndexOf("-")+1)+"01":row2.StockCode&amp;nbsp; 
&lt;BR /&gt;calling in output field as external ID 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="consolas, monaco, " bitstream="" vera="" sans="" mono=""&gt;Var.Var1+"-2016-"+TalendDate.formatDate("MMMM",row1.Date)+"-"+Var.Var2;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="consolas, monaco, " bitstream="" vera="" sans="" mono=""&gt;But it also give me the same error. please guide on this issue&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Sat, 15 Oct 2016 04:58:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-Double-type-Division/m-p/2262610#M43021</guid>
      <dc:creator>gt0731</dc:creator>
      <dc:date>2016-10-15T04:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: tmap-Double type Division</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-Double-type-Division/m-p/2262611#M43022</link>
      <description>First of all - You are use left JOIN (it is default)
&lt;BR /&gt;it mean if for first row - no matched rows in lookup file, You will have NullPointer error at least for index function, You must handle NULL
&lt;BR /&gt;run Job in debug mode for check - what coming from XML, then manually find it in lookup file and etc&amp;nbsp;</description>
      <pubDate>Sat, 15 Oct 2016 06:47:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-Double-type-Division/m-p/2262611#M43022</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2016-10-15T06:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: tmap-Double type Division</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-Double-type-Division/m-p/2262612#M43023</link>
      <description>Yes,we are using join &amp;nbsp;model -INNER JOIN . then &amp;nbsp;also it is causing the error.
&lt;BR /&gt;I rechecked&amp;nbsp; XML also &amp;nbsp;which is my &amp;nbsp;another data source &amp;nbsp; it is not null &amp;nbsp;in nature.&amp;nbsp;
&lt;BR /&gt;I am &amp;nbsp; still trying to Identify how to prevent this Null pointer exception.
&lt;BR /&gt;Thanks for the valuable time.</description>
      <pubDate>Sat, 15 Oct 2016 09:11:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-Double-type-Division/m-p/2262612#M43023</guid>
      <dc:creator>gt0731</dc:creator>
      <dc:date>2016-10-15T09:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: tmap-Double type Division</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-Double-type-Division/m-p/2262613#M43024</link>
      <description>what is show in debug mode?
&lt;BR /&gt;what first row2, what first in row1?</description>
      <pubDate>Sat, 15 Oct 2016 10:11:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-Double-type-Division/m-p/2262613#M43024</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2016-10-15T10:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: tmap-Double type Division</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-Double-type-Division/m-p/2262614#M43025</link>
      <description>Here is screenshot&amp;nbsp;
&lt;BR /&gt;in flow &amp;nbsp; it is showing &amp;nbsp;50 rows transferred from input ------&amp;gt;tmap ---------&amp;gt;0 rows obtained &amp;nbsp;at Output (When doing Inner join)
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;50 rows transferred from input ------&amp;gt;tmap ---------&amp;gt;50 rows obtained &amp;nbsp;at Output (When doingLeft join) it is throwing null pinter error&amp;nbsp;
&lt;BR /&gt;and &amp;nbsp;when i do debug run on&amp;nbsp;
&lt;BR /&gt;&amp;nbsp;Output &amp;nbsp;@ 50 th row &amp;nbsp; that is External ID &amp;nbsp;which i am &amp;nbsp;upserting against &amp;nbsp; SFDC &amp;nbsp;is &amp;nbsp;ABC -2016-July-null &amp;nbsp;which should be&amp;nbsp;WITZ-2016-July-BCD-8OZ-01. &amp;nbsp;</description>
      <pubDate>Sat, 15 Oct 2016 10:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-Double-type-Division/m-p/2262614#M43025</guid>
      <dc:creator>gt0731</dc:creator>
      <dc:date>2016-10-15T10:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: tmap-Double type Division</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-Double-type-Division/m-p/2262615#M43026</link>
      <description>is that possible &amp;nbsp;to have the team viewer &amp;nbsp;session so i can bring more to you.
&lt;BR /&gt;@vapukov
&lt;BR /&gt;
&lt;B&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT color="#5b5b5d"&gt;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;Do we have the session on this ?</description>
      <pubDate>Sat, 15 Oct 2016 16:35:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-Double-type-Division/m-p/2262615#M43026</guid>
      <dc:creator>gt0731</dc:creator>
      <dc:date>2016-10-15T16:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: tmap-Double type Division</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-Double-type-Division/m-p/2262616#M43027</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;is that possible &amp;nbsp;to have the team viewer &amp;nbsp;session so i can bring more to you.&lt;BR /&gt;@vapukov&lt;BR /&gt;&lt;B&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT color="#5b5b5d"&gt;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;Do we have the session on this ?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;was answered in PM</description>
      <pubDate>Sun, 16 Oct 2016 22:25:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-Double-type-Division/m-p/2262616#M43027</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2016-10-16T22:25:18Z</dc:date>
    </item>
  </channel>
</rss>

