<?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 Type mismatch: cannot convert from Object...to String in tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Type-mismatch-cannot-convert-from-Object-to-String-in-tMap/m-p/2313878#M84693</link>
    <description>Hi, 
&lt;BR /&gt;This is driving me crazy - pretty sure it's my knowledge of Java 
&lt;BR /&gt;(name value pair context file) 
&lt;BR /&gt;row1.Column0 is String 
&lt;BR /&gt;row1.Column1 is String 
&lt;BR /&gt;When (0) is LastBatchId, position (1) is treated as int which we want to increment plus 1 
&lt;BR /&gt;row1.Column0.equals("LastBatchId") 
&lt;BR /&gt;? Integer.parseInt(row1.Column1)+1 : "0" 
&lt;BR /&gt;Testing in the expression builder works, but executing and expression warning output is throwing this error 
&lt;BR /&gt;Type mismatch: cannot convert from Object...to String. 
&lt;BR /&gt;I am output all pairs to as strings. See screen shot for better idea. 
&lt;BR /&gt;Any help welcome 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEf0.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133401iF2E57953042406F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEf0.jpg" alt="0683p000009MEf0.jpg" /&gt;&lt;/span&gt;</description>
    <pubDate>Tue, 09 Jul 2013 17:28:18 GMT</pubDate>
    <dc:creator>agentgill</dc:creator>
    <dc:date>2013-07-09T17:28:18Z</dc:date>
    <item>
      <title>Type mismatch: cannot convert from Object...to String in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Type-mismatch-cannot-convert-from-Object-to-String-in-tMap/m-p/2313878#M84693</link>
      <description>Hi, 
&lt;BR /&gt;This is driving me crazy - pretty sure it's my knowledge of Java 
&lt;BR /&gt;(name value pair context file) 
&lt;BR /&gt;row1.Column0 is String 
&lt;BR /&gt;row1.Column1 is String 
&lt;BR /&gt;When (0) is LastBatchId, position (1) is treated as int which we want to increment plus 1 
&lt;BR /&gt;row1.Column0.equals("LastBatchId") 
&lt;BR /&gt;? Integer.parseInt(row1.Column1)+1 : "0" 
&lt;BR /&gt;Testing in the expression builder works, but executing and expression warning output is throwing this error 
&lt;BR /&gt;Type mismatch: cannot convert from Object...to String. 
&lt;BR /&gt;I am output all pairs to as strings. See screen shot for better idea. 
&lt;BR /&gt;Any help welcome 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEf0.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133401iF2E57953042406F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEf0.jpg" alt="0683p000009MEf0.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 09 Jul 2013 17:28:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Type-mismatch-cannot-convert-from-Object-to-String-in-tMap/m-p/2313878#M84693</guid>
      <dc:creator>agentgill</dc:creator>
      <dc:date>2013-07-09T17:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Type mismatch: cannot convert from Object...to String in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Type-mismatch-cannot-convert-from-Object-to-String-in-tMap/m-p/2313879#M84694</link>
      <description>The problem is a bit misleading error message. The true-part of your ? operator returns an int and this cannot be cast to a String. Try this:&lt;BR /&gt;row1.Column0.equals("LastBatchId") ? String.valueOf(Integer.parseInt(row1.Column1)+1) : "0"&lt;BR /&gt;In this version the int values will be converted into a String and this can be used.</description>
      <pubDate>Tue, 09 Jul 2013 18:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Type-mismatch-cannot-convert-from-Object-to-String-in-tMap/m-p/2313879#M84694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-09T18:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Type mismatch: cannot convert from Object...to String in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Type-mismatch-cannot-convert-from-Object-to-String-in-tMap/m-p/2313880#M84695</link>
      <description>Thanks, that makes sense and works!</description>
      <pubDate>Wed, 10 Jul 2013 12:38:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Type-mismatch-cannot-convert-from-Object-to-String-in-tMap/m-p/2313880#M84695</guid>
      <dc:creator>agentgill</dc:creator>
      <dc:date>2013-07-10T12:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Type mismatch: cannot convert from Object...to String in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Type-mismatch-cannot-convert-from-Object-to-String-in-tMap/m-p/2313881#M84696</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi,&lt;BR /&gt;This is driving me crazy - pretty sure it's my knowledge of Java&lt;BR /&gt;(name value pair context file)&lt;BR /&gt;row1.Column0 is String&lt;BR /&gt;row1.Column1 is String &lt;BR /&gt;When (0) is LastBatchId, position (1) is treated as int which we want to increment plus 1&lt;BR /&gt;row1.Column0.equals("LastBatchId")&lt;BR /&gt;? Integer.parseInt(row1.Column1)+1 : "0" &amp;nbsp;&lt;BR /&gt;Testing in the expression builder works, but executing and expression warning output is throwing this error&lt;BR /&gt;Type mismatch: cannot convert from Object...to String.&lt;BR /&gt;I am output all pairs to as strings. See screen shot for better idea.&lt;BR /&gt;Any help welcome&lt;BR /&gt;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;type Mismatch error: How to convert object type into int</description>
      <pubDate>Thu, 01 Oct 2015 06:49:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Type-mismatch-cannot-convert-from-Object-to-String-in-tMap/m-p/2313881#M84696</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2015-10-01T06:49:31Z</dc:date>
    </item>
  </channel>
</rss>

