<?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: spliting files an renaming files in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269265#M47567</link>
    <description>Hello 
&lt;BR /&gt;tMysqlInput---row1--&amp;gt;tFlowToIterate---iterate--&amp;gt;tAdvancedOutputXML
&lt;BR /&gt;on tFlowToIterate, generate each row.
&lt;BR /&gt;set the file as:
&lt;BR /&gt;"..."+row1.id+".xml"
&lt;BR /&gt;If you still have any trouble, please give us an example of your request.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
    <pubDate>Fri, 01 Oct 2010 03:50:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-10-01T03:50:52Z</dc:date>
    <item>
      <title>spliting files an renaming files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269263#M47565</link>
      <description>Hi,&lt;BR /&gt;I'm new on Talend.&lt;BR /&gt;I'm trying to create a file for each row I have in my database and want to rename each file whith a unique variable I have in the row.&lt;BR /&gt;My input file is a mysql database, I use a tmap before spliting in multiples files using xmloutput composant.&lt;BR /&gt;I try to put a variable in the "+("row1.id")+".xml", I have a null1, null2, null3 ....&lt;BR /&gt;Thanks for help &lt;BR /&gt;Sorry for my english</description>
      <pubDate>Sat, 16 Nov 2024 13:16:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269263#M47565</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: spliting files an renaming files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269264#M47566</link>
      <description>Hello,&lt;BR /&gt;I still need help&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 30 Sep 2010 21:07:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269264#M47566</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-30T21:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: spliting files an renaming files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269265#M47567</link>
      <description>Hello 
&lt;BR /&gt;tMysqlInput---row1--&amp;gt;tFlowToIterate---iterate--&amp;gt;tAdvancedOutputXML
&lt;BR /&gt;on tFlowToIterate, generate each row.
&lt;BR /&gt;set the file as:
&lt;BR /&gt;"..."+row1.id+".xml"
&lt;BR /&gt;If you still have any trouble, please give us an example of your request.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 01 Oct 2010 03:50:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269265#M47567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-01T03:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: spliting files an renaming files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269266#M47568</link>
      <description>hello&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;I can't see how I can change my job with your solution&lt;BR /&gt;Here is my flow</description>
      <pubDate>Fri, 01 Oct 2010 09:41:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269266#M47568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-01T09:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: spliting files an renaming files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269267#M47569</link>
      <description>hello, 
&lt;BR /&gt;I still need help 
&lt;BR /&gt;I'm not the only one with this issue 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCkE0CAK" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Generate-an-XML-file-per-row-Root-and-row-tag-problems/td-p/72628&lt;/A&gt; 
&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 07 Oct 2010 10:42:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269267#M47569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-07T10:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: spliting files an renaming files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269268#M47570</link>
      <description>I see your issue. you cannot connect an iterate link to a tFileOutputXML. To make this work, use a tJavaFlex to read from the iterate link one row at a time.&lt;BR /&gt;&lt;BR /&gt;dbInput --&amp;gt; tMap --&amp;gt; tFlowToIterate --&amp;gt; tJavaFlex --&amp;gt; tFileOutputXML&lt;BR /&gt;in your tJavaFlex, propogate the data with this code in the MAIN section:&lt;BR /&gt;&lt;PRE&gt;BEGIN SECTION: &lt;BR /&gt;&amp;lt;empty&amp;gt;&lt;BR /&gt;MAIN SECTION: &lt;BR /&gt;row2.newColumn = globalMap.get("row1.newColumn").toString();&lt;BR /&gt;END SECTION:&lt;BR /&gt;&amp;lt;empty&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;in my example row2 is the output row of the tJavaFlex and row1 is the input row to my tFlowToIterate. you will need to replace that with what your output/input rows are.&lt;BR /&gt;in the tFileOutputXML use this code in the File Name field:&lt;BR /&gt;&lt;PRE&gt;/file_example/file_header_" + globalMap.get("row1.newColumn").toString() + ".xml"&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Oct 2010 15:47:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269268#M47570</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-07T15:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: spliting files an renaming files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269269#M47571</link>
      <description>hello,&lt;BR /&gt;thanks for your help !&lt;BR /&gt;I followed your solution, I made some screenshot.&lt;BR /&gt;I have an error on the tjavaflex, don't know why&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;The error :&lt;BR /&gt; connecting to socket on port 3561&lt;BR /&gt; connected&lt;BR /&gt;Exception in component tJavaFlex_1&lt;BR /&gt;java.lang.NullPointerException&lt;BR /&gt;	at webedition.test_0_1.test.tMysqlInput_2Process(test.java:8742)&lt;BR /&gt;	at webedition.test_0_1.test.runJobInTOS(test.java:10732)&lt;BR /&gt;	at webedition.test_0_1.test.main(test.java:10593)&lt;BR /&gt; disconnected&lt;BR /&gt;Job test terminé à 14:02 08/10/2010.</description>
      <pubDate>Fri, 08 Oct 2010 10:06:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269269#M47571</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-08T10:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: spliting files an renaming files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269270#M47572</link>
      <description>It looks like you are referencing the wrong row varibles in the tJava flex.  The input to your tFlowToIterate is row11, the output of the java flex is row10. &lt;BR /&gt;change your code from this:&lt;BR /&gt;row11.EAN = globalMap.get("row6.gdl_ean").toString();&lt;BR /&gt;to this:&lt;BR /&gt;row10.EAN = globalMap.get("row11.gdl_ean").toString();</description>
      <pubDate>Fri, 08 Oct 2010 14:32:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269270#M47572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-08T14:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: spliting files an renaming files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269271#M47573</link>
      <description>thanks but it doesn't work&lt;BR /&gt;I haven't go any row10  in my tmap. Is it normal ?&lt;BR /&gt;And row11 is before row 10 in the flow, is it a problem ?</description>
      <pubDate>Fri, 08 Oct 2010 14:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269271#M47573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-08T14:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: spliting files an renaming files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269272#M47574</link>
      <description>it dosnt matter what the input and output are called, just that they are referenced correctly. I've uploaded your screenshot with input and output highlighted.
&lt;BR /&gt;&amp;lt;OUTPUT_ROW_VAR&amp;gt;.&amp;lt;OUTPUT_COLUMN_NAME&amp;gt; = globalMap.get("&amp;lt;INPUT_ROW_VAR&amp;gt;.&amp;lt;INPUT_COLUMN_NAME&amp;gt;").toString();</description>
      <pubDate>Fri, 08 Oct 2010 14:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269272#M47574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-08T14:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: spliting files an renaming files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269273#M47575</link>
      <description>Hello,&lt;BR /&gt;Thanks very much for your help !&lt;BR /&gt;It works now  ! I have all my files with the right name but XML fields are now empty except for  the EAN.&lt;BR /&gt;Do I have to set global var for each field ? Where ?</description>
      <pubDate>Mon, 11 Oct 2010 14:27:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269273#M47575</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-11T14:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: spliting files an renaming files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269274#M47576</link>
      <description>I try to set all vars in the tjavaflex ! It works for row11&lt;BR /&gt;row10.SERIEL=globalMap.get("row11.SERIEL").toString(); WORK&lt;BR /&gt;row10.ISBN=globalMap.get("row11.ISBN").toString(); WORK&lt;BR /&gt;row10.EAN=globalMap.get("row11.EAN").toString(); WORK&lt;BR /&gt;row10.AGEDEB=globalMap.get("row9.cum_age").toString();  DOESN'T WORK&lt;BR /&gt;Any help please ?</description>
      <pubDate>Mon, 11 Oct 2010 16:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269274#M47576</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-11T16:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: spliting files an renaming files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269275#M47577</link>
      <description>the tFlowToIterate is what is putting the row values into the global map. row9 is not being processed by the flowToIterate-- so its values will not be put into the global map.&lt;BR /&gt;looking at your screenshots, all you would need to do is include the "cum_age" column in your row11 output table in the tMap, then you will be able to pull it out of the global map like all the other row11 values.</description>
      <pubDate>Tue, 12 Oct 2010 14:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269275#M47577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-12T14:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: spliting files an renaming files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269276#M47578</link>
      <description>I put the row9.cum_age  in row11.AGEDEB in the TMAP but when I do a row10.AGEDEB =globalMap.get("row11.AGEDEB ").toString(); in the tjava flex it doesn't work &lt;BR /&gt;error&lt;BR /&gt;Exception in component tJavaFlex_1&lt;BR /&gt;java.lang.NullPointerException&lt;BR /&gt;	at webedition.test_0_1.test.tMysqlInput_2Process(test.java:3428)&lt;BR /&gt;	at webedition.test_0_1.test.runJobInTOS(test.java:5371)&lt;BR /&gt;	at webedition.test_0_1.test.main(test.java:5243)</description>
      <pubDate>Tue, 12 Oct 2010 14:21:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269276#M47578</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-12T14:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: spliting files an renaming files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269277#M47579</link>
      <description>are you still refering to it with this?&lt;BR /&gt;row10.EAN=globalMap.get("row9.cum_age").toString(); &lt;BR /&gt;if so, change it to:&lt;BR /&gt;row10.EAN=globalMap.get("row11.AGEDB").toString();</description>
      <pubDate>Tue, 12 Oct 2010 14:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269277#M47579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-12T14:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: spliting files an renaming files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269278#M47580</link>
      <description>I made an error sorry it's not &lt;BR /&gt;row10.EAN=globalMap.get("row9.cum_age").toString(); &lt;BR /&gt;but&lt;BR /&gt;row10.AGEDB=globalMap.get("row9.cum_age").toString();&lt;BR /&gt;I tried both, they don't work.&lt;BR /&gt;row10.AGEDB=globalMap.get("row11.AGEDB").toString();&lt;BR /&gt;row10.AGEDB=globalMap.get("row9.cum_age").toString();</description>
      <pubDate>Tue, 12 Oct 2010 14:38:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269278#M47580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-12T14:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: spliting files an renaming files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269279#M47581</link>
      <description>Just a little help for this please ! 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 13 Oct 2010 09:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269279#M47581</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-13T09:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: spliting files an renaming files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269280#M47582</link>
      <description>Can you post a few more screenshots of what you're working with? Please include the inside of the tMap and tJavaFlex.</description>
      <pubDate>Wed, 13 Oct 2010 14:23:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269280#M47582</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-13T14:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: spliting files an renaming files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269281#M47583</link>
      <description>Now I manage to get the row11.ean name for filename and i can set globalvar for every row11 that came from the row6 but
&lt;BR /&gt;it doesn't work for those which came from row8 or row9 so I can fill my xml file with all fields.
&lt;BR /&gt;The line row10.AGEDEB=globalMap.get("row11.AGEDEB").toString(); in the tjavaflex doesn't work
&lt;BR /&gt;Maybe I have to make a join in the tjavaflex but how ?
&lt;BR /&gt;
&lt;BR /&gt;Here is the flow, the tmap and the tJavaFlex
&lt;BR /&gt;
&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 13 Oct 2010 15:13:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269281#M47583</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-13T15:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: spliting files an renaming files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269282#M47584</link>
      <description>Hello&lt;BR /&gt;I still can't make it work,&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 18 Oct 2010 09:14:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/spliting-files-an-renaming-files/m-p/2269282#M47584</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-18T09:14:38Z</dc:date>
    </item>
  </channel>
</rss>

