<?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: How to write rows that transcend Excel's row limit into a new sheet? (tfileInputDelimited -&amp;gt;tFileOutputExcel/tFileExcelSheetOutput ) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-rows-that-transcend-Excel-s-row-limit-into-a-new/m-p/2264671#M44440</link>
    <description>Maybe but keep it stupid simple is often a good solution!</description>
    <pubDate>Fri, 22 Nov 2019 07:57:07 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2019-11-22T07:57:07Z</dc:date>
    <item>
      <title>How to write rows that transcend Excel's row limit into a new sheet? (tfileInputDelimited -&gt;tFileOutputExcel/tFileExcelSheetOutput )</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-rows-that-transcend-Excel-s-row-limit-into-a-new/m-p/2264667#M44436</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I work with Talend Open Studio and have a simple job like&lt;/P&gt; 
&lt;P&gt;tfileInputDelimited --&amp;gt; tMap --&amp;gt;tFileOutputExcel (Excel 2007 xlsx)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The problem is that I have more than 1.200.000 rows, so I reach the maximum number of rows in one Excel sheet. (The number of rows will increase over time.)&lt;/P&gt; 
&lt;P&gt;So I thought it would be perfect if when the limit is reached a new Excel sheet is generated and continued to be written there.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So I added the Component&amp;nbsp;tFileExcelWorkbookOpen, tFileExcelSheetOutput and&amp;nbsp;tFileExcelWorkbookSave.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The new job looks as follow:&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tGlobalVar Variable named "excel_output_sheet"&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I&lt;/P&gt; 
&lt;P&gt;[SubOk]&lt;/P&gt; 
&lt;P&gt;I&lt;/P&gt; 
&lt;P&gt;tFileExcelWorkbookOpen -&lt;FONT size="1 2 3 4 5 6 7"&gt;[Comp OK]&lt;/FONT&gt;-&amp;gt;&amp;nbsp;tfileInputDelimited -&lt;FONT size="1 2 3 4 5 6 7"&gt;[Main]&lt;/FONT&gt;-&amp;gt;&amp;nbsp;tMap&amp;nbsp; -&lt;FONT size="1 2 3 4 5 6 7"&gt;[Main]&lt;/FONT&gt;-&amp;gt; tJavaRow -&lt;FONT size="1 2 3 4 5 6 7"&gt;[Main]&lt;/FONT&gt;-&amp;gt;&amp;nbsp;tFileExcelSheetOutput &lt;FONT size="1 2 3 4 5 6 7"&gt;[Comp OK]&lt;/FONT&gt;-&amp;gt;&amp;nbsp;tFileExcelWorkbookSave&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In tMap I added a new column "row_number"&amp;nbsp; with the function&amp;nbsp; &amp;nbsp;&lt;FONT face="courier new,courier"&gt;Numeric.sequence("s1", 1, 1).&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;In tJavaRow i wrote:&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;globalMap.put("excel_output_sheet", Math.round(Math.ceil(input_row.rownum /1000000.0))); &lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;(for the other columns output=input)&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;In&amp;nbsp;tFileExcelSheetOutput I set sheet name to:&amp;nbsp;"part_"+globalMap.get("excel_output_sheet")&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The problem is that the query for the sheetname seems to happen before the variable is calculated, so Talend still tries to write everything into a single sheet and doesn't change it.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can someone tell me what I'm doing wrong here, or if I need a different approach?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have also thought about making a loop over the input, but here I only know how to get to the first n lines and not how to get to the lines n+1 to 2n.&amp;nbsp;Perhaps someone here has a suitable suggestion?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My third thought was to generate multiple outputs in tmap, but since the number of lines will continue to increase, I don't think this is a long-term solution.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I hope my request is understandable.&amp;nbsp; Thank you in advance for any advice!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:03:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-rows-that-transcend-Excel-s-row-limit-into-a-new/m-p/2264667#M44436</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to write rows that transcend Excel's row limit into a new sheet? (tfileInputDelimited -&gt;tFileOutputExcel/tFileExcelSheetOutput )</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-rows-that-transcend-Excel-s-row-limit-into-a-new/m-p/2264668#M44437</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;One quick solution will be to write as delimited csv file by splitting the output rows to multiple files as shown below.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8Cb.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157037i26FFB7B2FE984D68/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8Cb.png" alt="0683p000009M8Cb.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You can still read the output from csv file using excel. If needed, you can move it to Excel later from csv file.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 19:57:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-rows-that-transcend-Excel-s-row-limit-into-a-new/m-p/2264668#M44437</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-20T19:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to write rows that transcend Excel's row limit into a new sheet? (tfileInputDelimited -&gt;tFileOutputExcel/tFileExcelSheetOutput )</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-rows-that-transcend-Excel-s-row-limit-into-a-new/m-p/2264669#M44438</link>
      <description>Double query 
&lt;A href="https://community.qlik.com/s/feed/0D73p000004kiYZCAY#M113890" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Split-rows-into-multple-sheets/m-p/207694#M113890&lt;/A&gt;</description>
      <pubDate>Wed, 20 Nov 2019 21:31:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-rows-that-transcend-Excel-s-row-limit-into-a-new/m-p/2264669#M44438</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-11-20T21:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to write rows that transcend Excel's row limit into a new sheet? (tfileInputDelimited -&gt;tFileOutputExcel/tFileExcelSheetOutput )</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-rows-that-transcend-Excel-s-row-limit-into-a-new/m-p/2264670#M44439</link>
      <description>&lt;P&gt;First of all, thank you very much for your answer.&lt;/P&gt;&lt;P&gt;So there is no other solution to this problem than the approach you have described?&lt;/P&gt;&lt;P&gt;I had hoped that there would be a way to do this without creating the additional csv files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 07:42:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-rows-that-transcend-Excel-s-row-limit-into-a-new/m-p/2264670#M44439</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-22T07:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to write rows that transcend Excel's row limit into a new sheet? (tfileInputDelimited -&gt;tFileOutputExcel/tFileExcelSheetOutput )</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-rows-that-transcend-Excel-s-row-limit-into-a-new/m-p/2264671#M44440</link>
      <description>Maybe but keep it stupid simple is often a good solution!</description>
      <pubDate>Fri, 22 Nov 2019 07:57:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-rows-that-transcend-Excel-s-row-limit-into-a-new/m-p/2264671#M44440</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-11-22T07:57:07Z</dc:date>
    </item>
  </channel>
</rss>

