<?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: UPCASE in tMap Error : Type mismatch: cannot convert from String to Boolean in tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/UPCASE-in-tMap-Error-Type-mismatch-cannot-convert-from-String-to/m-p/2218842#M13880</link>
    <description>&lt;P&gt;Do you have any Column as Boolean in Variable expression or Output Expression&amp;nbsp; window.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check there if you are using String instead of Boolean.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that : "true"(String) is not equal to true (Boolean)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also you could use simple expression like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="pln"&gt;row1.columnname == null ? "" : row1.columnname&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;substring&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt; &lt;SPAN class="lit"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;).&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;toUpperCase&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;()&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;+&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; row1.columnname&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;substring&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 05 Mar 2019 15:03:49 GMT</pubDate>
    <dc:creator>akumar2301</dc:creator>
    <dc:date>2019-03-05T15:03:49Z</dc:date>
    <item>
      <title>UPCASE in tMap Error : Type mismatch: cannot convert from String to Boolean in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/UPCASE-in-tMap-Error-Type-mismatch-cannot-convert-from-String-to/m-p/2218841#M13879</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm trying to use&amp;nbsp;StringHandling.UPCASE() in tmap to convert the first letter in a sentence to Capital. So here is what I tried&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;First expression&lt;/P&gt; 
&lt;P&gt;StringHandling.UPCASE(Var.var1)&lt;/P&gt; 
&lt;P&gt;var1 is..... StringHandling.LEFT(row1.Design,1)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Second expression&lt;/P&gt; 
&lt;P&gt;StringHandling.UPCASE(StringHandling.LEFT(row1.Design,1))&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Third expression&lt;/P&gt; 
&lt;P&gt;I even tried to upper case all the sentence (to check if it works) using&amp;nbsp;StringHandling.UPCASE(row1.Design)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But in all three cases I get the same error again and again, am not sure what is wrong in my syntex...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Error:&amp;nbsp;Type mismatch: cannot convert from String to Boolean in tMap&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you for your help,&lt;/P&gt; 
&lt;P&gt;srashad&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 14:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/UPCASE-in-tMap-Error-Type-mismatch-cannot-convert-from-String-to/m-p/2218841#M13879</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-05T14:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: UPCASE in tMap Error : Type mismatch: cannot convert from String to Boolean in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/UPCASE-in-tMap-Error-Type-mismatch-cannot-convert-from-String-to/m-p/2218842#M13880</link>
      <description>&lt;P&gt;Do you have any Column as Boolean in Variable expression or Output Expression&amp;nbsp; window.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check there if you are using String instead of Boolean.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that : "true"(String) is not equal to true (Boolean)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also you could use simple expression like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="pln"&gt;row1.columnname == null ? "" : row1.columnname&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;substring&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt; &lt;SPAN class="lit"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;).&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;toUpperCase&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;()&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;+&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; row1.columnname&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;substring&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Mar 2019 15:03:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/UPCASE-in-tMap-Error-Type-mismatch-cannot-convert-from-String-to/m-p/2218842#M13880</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-03-05T15:03:49Z</dc:date>
    </item>
  </channel>
</rss>

