<?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: tFileList to tIteratetoFlow - Can't convert Object to String in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFileList-to-tIteratetoFlow-Can-t-convert-Object-to-String/m-p/2273918#M50749</link>
    <description>I have a problem with tfilelist and iteratetoflow. I work on Windows Seven Pro 64 with TOS 64. I just want  to list a directrory in a file like in example in the component guide. The error is the next :&lt;BR /&gt;'La méthode tIterateToFlow_1_AI_onSubJobError(Exception,String,Map&amp;lt;String,Objetc&amp;gt;) est indéfinie pour le type NomJob.&lt;BR /&gt;I don't understand how a very simple use case can't work. What about stability and test unit of the software? Often with TOS i now what i want and how to make the job (I paid a formation) but it doesn't work. It's very expansive for time (free software????).</description>
    <pubDate>Sat, 18 Dec 2010 17:27:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-12-18T17:27:11Z</dc:date>
    <item>
      <title>tFileList to tIteratetoFlow - Can't convert Object to String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileList-to-tIteratetoFlow-Can-t-convert-Object-to-String/m-p/2273913#M50744</link>
      <description>new to Talend and trying to evaluate it against several other ETL tools in a short time span. Using Talend 3.0 on a Linux system. 
&lt;BR /&gt;I feel like an idiot at the moment. I was following an example from the Components_RG_30c_EN.pdf guide (Scenario: Transforming a list of files as data flow) and I've run into the problem that my job is throwing an error that it cannot convert from Object to String. 
&lt;BR /&gt;Job is using Java not Perl. 
&lt;BR /&gt;I have a tFileList listing a directory, FileList Type=Files, Case Sensitivity=No, Use Glob Expression=Yes, Filemask="*.txt". tFileList links to tIterateToFlow via iteration link. tIterateToFlow schema has one column defined "filename" who gets it's value from globalMap.get("CURRENT_FILE"). I have also tried various other variables including: 
&lt;BR /&gt;$_globals{tFileList_1}{CURRENT_FILEPATH} 
&lt;BR /&gt;((String)globalMap.get("tFileList_2_CURRENT_FILE")) 
&lt;BR /&gt;((String)globalMap.get("tFileList_2_CURRENT_FILEPATH")) 
&lt;BR /&gt;Help is much appreciated.</description>
      <pubDate>Sat, 16 Nov 2024 14:04:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileList-to-tIteratetoFlow-Can-t-convert-Object-to-String/m-p/2273913#M50744</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: tFileList to tIteratetoFlow - Can't convert Object to String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileList-to-tIteratetoFlow-Can-t-convert-Object-to-String/m-p/2273914#M50745</link>
      <description>try &lt;BR /&gt;&lt;PRE&gt;globalMap.get("tFileList_2_CURRENT_FILE").toString()&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Feb 2009 22:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileList-to-tIteratetoFlow-Can-t-convert-Object-to-String/m-p/2273914#M50745</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-02-19T22:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: tFileList to tIteratetoFlow - Can't convert Object to String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileList-to-tIteratetoFlow-Can-t-convert-Object-to-String/m-p/2273915#M50746</link>
      <description>just to update. I seem to have come up with a solution. If I'm wrong, by all means, please correct me. 
&lt;BR /&gt;So I tried the exact same thing using perl instead of Java and it worked just fine. Since I prefer to use Java if at all possible, I kept digging and found out that it was all pretty much centered around the variable value in the tIterateToFlow mapping. When I edited the schema in tIterateToFlow and created a new column "filename", it automatically populated the mapping value with globalMap.get("CURRENT_FILE"). Two things seem to be wrong here 
&lt;BR /&gt;a) globalMap.get() returns Object, not String causing a java.lang.Exception 
&lt;BR /&gt;b) "CURRENT_FILE" is not a value recognized (at least not in my job). 
&lt;BR /&gt;Clearing the Value, I used CTRL+Space to scroll though the list of available variables and found that "tFileList_1_CURRENT_FILE" looked promising. The problem there is that by selecting this variable it populated with ((String)globalMap.get("tFileList_1_CURRENT_FILE")). Almost correct, but the extra parens caused null values to be returned. 
&lt;BR /&gt;What works for me is: 
&lt;BR /&gt;(String)globalMap.get("tFileList_1_CURRENT_FILE") 
&lt;BR /&gt;or 
&lt;BR /&gt;(String)globalMap.get("tFileList_1_CURRENT_FILEPATH")</description>
      <pubDate>Thu, 19 Feb 2009 22:55:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileList-to-tIteratetoFlow-Can-t-convert-Object-to-String/m-p/2273915#M50746</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-02-19T22:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: tFileList to tIteratetoFlow - Can't convert Object to String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileList-to-tIteratetoFlow-Can-t-convert-Object-to-String/m-p/2273916#M50747</link>
      <description>haha, too late on the draw on my part.  Thanks John.</description>
      <pubDate>Thu, 19 Feb 2009 22:56:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileList-to-tIteratetoFlow-Can-t-convert-Object-to-String/m-p/2273916#M50747</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-02-19T22:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: tFileList to tIteratetoFlow - Can't convert Object to String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileList-to-tIteratetoFlow-Can-t-convert-Object-to-String/m-p/2273917#M50748</link>
      <description>Hi,&lt;BR /&gt;Java is very type save and it is not possible to overload a method to return different types. So globalMap.get() will always return a Object (all types in Java are derived from Object. But to use it you need to do a cast. This is done by setting the needed type in parentheses in front of the variable (or method). &lt;BR /&gt;The extra parentheses should make no problems. Are you sure you haven't changed anything else?&lt;BR /&gt;Bye&lt;BR /&gt;Volker</description>
      <pubDate>Fri, 20 Feb 2009 09:44:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileList-to-tIteratetoFlow-Can-t-convert-Object-to-String/m-p/2273917#M50748</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-02-20T09:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: tFileList to tIteratetoFlow - Can't convert Object to String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileList-to-tIteratetoFlow-Can-t-convert-Object-to-String/m-p/2273918#M50749</link>
      <description>I have a problem with tfilelist and iteratetoflow. I work on Windows Seven Pro 64 with TOS 64. I just want  to list a directrory in a file like in example in the component guide. The error is the next :&lt;BR /&gt;'La méthode tIterateToFlow_1_AI_onSubJobError(Exception,String,Map&amp;lt;String,Objetc&amp;gt;) est indéfinie pour le type NomJob.&lt;BR /&gt;I don't understand how a very simple use case can't work. What about stability and test unit of the software? Often with TOS i now what i want and how to make the job (I paid a formation) but it doesn't work. It's very expansive for time (free software????).</description>
      <pubDate>Sat, 18 Dec 2010 17:27:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileList-to-tIteratetoFlow-Can-t-convert-Object-to-String/m-p/2273918#M50749</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-18T17:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: tFileList to tIteratetoFlow - Can't convert Object to String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileList-to-tIteratetoFlow-Can-t-convert-Object-to-String/m-p/2273919#M50750</link>
      <description>Hi 
&lt;BR /&gt;below a bug (related in 2010 by an other person) and i have the same problème (tos 4.2.2 or TOS 5.0 with Postgresql 9.0). It is very important to can update some record and have a reject fux. For this elementary task i hope talend fix the bug in 2012 or 2013 or 2014 ... 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Can someone have the same problem or a solution? For me using batch with 1line don't work. 
&lt;BR /&gt;Thanks; 
&lt;BR /&gt;The bug : 
&lt;BR /&gt;Hi, 
&lt;BR /&gt;I want to insert rows in an PostgreSQL database having rejected row to be log in a special file. 
&lt;BR /&gt;I'm using a tPostgresqlOutput with "commit every" 10000, "Die on error" false. 
&lt;BR /&gt;When an error occurs on "insert", all the following rows are rejected with the following message "current transaction is aborted, commands ignored until end of transaction block" 
&lt;BR /&gt;While using tOracleOutput I don't get this kind of error. 
&lt;BR /&gt;I can counter this by setting "commit every" to 1, but is there any other way to save "commit" and go through first SQL error? 
&lt;BR /&gt;--My config : 
&lt;BR /&gt;TOS 4.0.2.r43696 
&lt;BR /&gt;PosgreSQL Database Server 8.2</description>
      <pubDate>Thu, 01 Dec 2011 18:42:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileList-to-tIteratetoFlow-Can-t-convert-Object-to-String/m-p/2273919#M50750</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-01T18:42:51Z</dc:date>
    </item>
  </channel>
</rss>

