<?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: Int to Doube/Char to Boolean in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Int-to-Doube-Char-to-Boolean/m-p/2224393#M17121</link>
    <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Thank you,&lt;BR /&gt;The field is mapped to a double but still errors.&lt;BR /&gt;After doing more research i see others have used a tConvertType would this help both my issues ?&lt;BR /&gt;Lee&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Could you upload a screenshot of your tMap window? I don't think the tConverType is necessary. I made some edits to my first post and I mentioned that for your second issue, you aren't comparing any fields. Did you mean to include a .equals()?</description>
    <pubDate>Tue, 04 Mar 2014 17:41:20 GMT</pubDate>
    <dc:creator>Jj5</dc:creator>
    <dc:date>2014-03-04T17:41:20Z</dc:date>
    <item>
      <title>Int to Doube/Char to Boolean</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Int-to-Doube-Char-to-Boolean/m-p/2224388#M17116</link>
      <description>Hello all, 
&lt;BR /&gt;I have an excel(sheet) as my input and SFDC connection as my output with a tMap in between. 
&lt;BR /&gt;Currently it error's because it can't convert between the data types. 
&lt;BR /&gt;Type mismatch: cannot convert from String to Double 
&lt;BR /&gt;Type mismatch: cannot convert from Character to boolean 
&lt;BR /&gt;I'm trying different ways with the tMap component in the expression part to get these convert but am not having much luck. 
&lt;BR /&gt;Does anybody have any ideas to help me. 
&lt;BR /&gt;Regards Lee</description>
      <pubDate>Tue, 04 Mar 2014 16:45:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Int-to-Doube-Char-to-Boolean/m-p/2224388#M17116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-04T16:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Int to Doube/Char to Boolean</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Int-to-Doube-Char-to-Boolean/m-p/2224389#M17117</link>
      <description>Hi 
&lt;BR /&gt;Can you show us the expression you are using to convert the data type? 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 04 Mar 2014 16:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Int-to-Doube-Char-to-Boolean/m-p/2224389#M17117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-04T16:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Int to Doube/Char to Boolean</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Int-to-Doube-Char-to-Boolean/m-p/2224390#M17118</link>
      <description>Thank you for the reply.
&lt;BR /&gt;Type mismatch: cannot convert from String to Double
&lt;BR /&gt;Double.parseDouble(row7.DELIVERED_COST) 
&lt;BR /&gt;Type mismatch: cannot convert from Character to boolean
&lt;BR /&gt;row7.SPECULATIVE_BUILD__C("Y")?1:row7.SPECULATIVE_BUILD__C("N")?0:Null</description>
      <pubDate>Tue, 04 Mar 2014 16:59:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Int-to-Doube-Char-to-Boolean/m-p/2224390#M17118</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-04T16:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Int to Doube/Char to Boolean</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Int-to-Doube-Char-to-Boolean/m-p/2224391#M17119</link>
      <description>The first error you posted (Type mismatch: cannot convert from String to Double 
&lt;BR /&gt;Double.parseDouble(row7.DELIVERED_COST) ) is usually an issue with your field types. Double click your tMap to open it, then look at the bottom where it shows the Schema editor. Here you will see all your fields; they all have types associated with them like String, Double, Int, etc. You can change them by choosing another type from the dropdown menu (right beside the field names). 
&lt;BR /&gt;Make sure that they fields are the correct type. I.e. make sure on the tMap the field that you are mapping this to "Double.parseDouble(row7.DELIVERED_COST)" is set to a double. 
&lt;BR /&gt;As for the other line "row7.SPECULATIVE_BUILD__C("Y")?1:row7.SPECULATIVE_BUILD__C("N")?0:Null" you're not actually comparing anything. I think you meant: 
&lt;BR /&gt;row7.SPECULATIVE_BUILD__C.equals("Y")?1:row7.SPECULATIVE_BUILD__C.equals("N")?0:Null</description>
      <pubDate>Tue, 04 Mar 2014 17:17:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Int-to-Doube-Char-to-Boolean/m-p/2224391#M17119</guid>
      <dc:creator>Jj5</dc:creator>
      <dc:date>2014-03-04T17:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Int to Doube/Char to Boolean</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Int-to-Doube-Char-to-Boolean/m-p/2224392#M17120</link>
      <description>Thank you,
&lt;BR /&gt;The field is mapped to a double but still errors.
&lt;BR /&gt;After doing more research i see others have used a tConvertType would this help both my issues ?
&lt;BR /&gt;Lee</description>
      <pubDate>Tue, 04 Mar 2014 17:35:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Int-to-Doube-Char-to-Boolean/m-p/2224392#M17120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-04T17:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Int to Doube/Char to Boolean</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Int-to-Doube-Char-to-Boolean/m-p/2224393#M17121</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Thank you,&lt;BR /&gt;The field is mapped to a double but still errors.&lt;BR /&gt;After doing more research i see others have used a tConvertType would this help both my issues ?&lt;BR /&gt;Lee&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Could you upload a screenshot of your tMap window? I don't think the tConverType is necessary. I made some edits to my first post and I mentioned that for your second issue, you aren't comparing any fields. Did you mean to include a .equals()?</description>
      <pubDate>Tue, 04 Mar 2014 17:41:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Int-to-Doube-Char-to-Boolean/m-p/2224393#M17121</guid>
      <dc:creator>Jj5</dc:creator>
      <dc:date>2014-03-04T17:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Int to Doube/Char to Boolean</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Int-to-Doube-Char-to-Boolean/m-p/2224394#M17122</link>
      <description>This is for the int to boolen.
&lt;BR /&gt;
&lt;IMG src="/legacyfs/online/membersTempo/58864/129100_tmap boolean1.PNG" /&gt;</description>
      <pubDate>Wed, 05 Mar 2014 15:09:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Int-to-Doube-Char-to-Boolean/m-p/2224394#M17122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-05T15:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Int to Doube/Char to Boolean</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Int-to-Doube-Char-to-Boolean/m-p/2224395#M17123</link>
      <description>That expression looks right. Are you still getting an error about a Boolean? Also could you attach a screenshot of what you see when you double click your tMap?</description>
      <pubDate>Wed, 05 Mar 2014 15:29:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Int-to-Doube-Char-to-Boolean/m-p/2224395#M17123</guid>
      <dc:creator>Jj5</dc:creator>
      <dc:date>2014-03-05T15:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Int to Doube/Char to Boolean</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Int-to-Doube-Char-to-Boolean/m-p/2224396#M17124</link>
      <description>Ok got the boolean working.  By using this.&lt;BR /&gt;row4.Spec_Build.equals("Y")?true:row4.Spec_Build.equals("N")?false:null&lt;BR /&gt;Now just need to work on integer to double.</description>
      <pubDate>Wed, 05 Mar 2014 18:01:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Int-to-Doube-Char-to-Boolean/m-p/2224396#M17124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-05T18:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Int to Doube/Char to Boolean</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Int-to-Doube-Char-to-Boolean/m-p/2224397#M17125</link>
      <description>It's going to be much easier to help you if you can take a screenshot of your tMap, making sure you drag the Schema editor so we can see all the fields. This is an example of mine:&lt;BR /&gt;&lt;IMG src="http://i.imgur.com/gFStkv2.jpg /&amp;gt;" /&gt;</description>
      <pubDate>Wed, 05 Mar 2014 18:42:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Int-to-Doube-Char-to-Boolean/m-p/2224397#M17125</guid>
      <dc:creator>Jj5</dc:creator>
      <dc:date>2014-03-05T18:42:28Z</dc:date>
    </item>
  </channel>
</rss>

