<?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: tJavaRow Errors in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-Errors/m-p/2253156#M36587</link>
    <description>I am having an additional problem 
&lt;BR /&gt;In the tJavaRow I have a context variable context.fileNumber every 5000 records this is incremmented by 1. 
&lt;BR /&gt;In the File Name text field of the tFileOutputMSXML i have enter "C:/opt/ftp/talend/XMLFiles/out"+context.fileNumber+".xml" 
&lt;BR /&gt;I have added printstatements to the tJaveRow that show the variable incrementing correctly but only the one XML file is created. 
&lt;BR /&gt;Is it possible to split the files using this method?</description>
    <pubDate>Mon, 20 Aug 2012 12:19:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-08-20T12:19:33Z</dc:date>
    <item>
      <title>tJavaRow Errors</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-Errors/m-p/2253152#M36583</link>
      <description>I have my components set up as the attached image shows.
&lt;BR /&gt;Before I added the tJavaRow component it did not have any errors and it ran correctly.
&lt;BR /&gt;After adding the tJavaRow I got
&lt;BR /&gt;General
&lt;BR /&gt;The method tMysqlInput_1Process(Map&amp;lt;String,Object&amp;gt;) is undefined for the type DBtoXML10
&lt;BR /&gt;tMysqlInput
&lt;BR /&gt;A component that is not a sub process start can not have any link on sub job ok / on sub job error in input.
&lt;BR /&gt;Currently the only code in the tjava row is this ( I will add additional later)
&lt;BR /&gt;output_row.ID = input_row.ID;
&lt;BR /&gt;output_row.title = input_row.title;
&lt;BR /&gt;output_row.sub_title = input_row.sub_title;</description>
      <pubDate>Fri, 17 Aug 2012 14:08:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-Errors/m-p/2253152#M36583</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-17T14:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow Errors</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-Errors/m-p/2253153#M36584</link>
      <description>Hi&lt;BR /&gt;Which version of TOS do you use?&lt;BR /&gt;I encountered this issue before and it was solved by deleting the current job and recreating a new one.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Sat, 18 Aug 2012 09:33:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-Errors/m-p/2253153#M36584</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-18T09:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow Errors</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-Errors/m-p/2253154#M36585</link>
      <description>The problem is OnSubjobOK must go to/from the start component of the subjob (the one with a green background). In your job that is tMysqlInput_2 (because that is merge order 1) but OnSubjobOK is linked to tMysqlInput_1, which is why the latter has an error mark against it.</description>
      <pubDate>Mon, 20 Aug 2012 03:58:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-Errors/m-p/2253154#M36585</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2012-08-20T03:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow Errors</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-Errors/m-p/2253155#M36586</link>
      <description>I changed the connection to the merge order 1 and it ran thanks for your help.</description>
      <pubDate>Mon, 20 Aug 2012 12:11:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-Errors/m-p/2253155#M36586</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-20T12:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow Errors</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-Errors/m-p/2253156#M36587</link>
      <description>I am having an additional problem 
&lt;BR /&gt;In the tJavaRow I have a context variable context.fileNumber every 5000 records this is incremmented by 1. 
&lt;BR /&gt;In the File Name text field of the tFileOutputMSXML i have enter "C:/opt/ftp/talend/XMLFiles/out"+context.fileNumber+".xml" 
&lt;BR /&gt;I have added printstatements to the tJaveRow that show the variable incrementing correctly but only the one XML file is created. 
&lt;BR /&gt;Is it possible to split the files using this method?</description>
      <pubDate>Mon, 20 Aug 2012 12:19:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-Errors/m-p/2253156#M36587</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-20T12:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow Errors</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-Errors/m-p/2253157#M36588</link>
      <description>No; the output file is created before the flow starts. 
&lt;BR /&gt;I've never used tFileOutputMSXML so I'm not sure how to resolve this because it takes multiple flows. 
&lt;BR /&gt;The usual suggestion for a single flow is to use tFlowToIterate and tFixedFlowInput before the output, although this would likely be way too slow for so many rows. 
&lt;BR /&gt;Other ways, again for a single flow, might be to: 
&lt;BR /&gt;1. store the final row data in a temporary file or hash and then as a subsequent subjob execute a loop for the number of files you need, re-reading the temporary file or hash, filtering based on the fileNumber and writing to each xml file. 
&lt;BR /&gt;2. write the final row data to a delimited file, using the ability to split to multiple files and then as a subsequent subjob iterate over the created files to write them as xml. 
&lt;BR /&gt;If you can't figure out a way to achieve something like that with your data then I suggest you create a new topic for more help from someone else.</description>
      <pubDate>Thu, 23 Aug 2012 04:14:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-Errors/m-p/2253157#M36588</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2012-08-23T04:14:54Z</dc:date>
    </item>
  </channel>
</rss>

