<?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 output row numbers from a multi-sheet excel input in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-output-row-numbers-from-a-multi-sheet-excel-input/m-p/2213737#M10882</link>
    <description>I suppose your using the new features of tFileInputExcel (3359) and so you're not "really" with a TOS 2.3.2 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;In your tPerlRow, I suggest:&lt;BR /&gt;&lt;PRE&gt;@output_row = @input_row;&lt;BR /&gt;$output_row = sprintf(&lt;BR /&gt;    'sheet "%s", row %u',&lt;BR /&gt;    $_globals{tFileInputExcel_1}{CURRENT_SHEET_NAME},&lt;BR /&gt;    1 + sequence($_globals{tFileInputExcel_1}{CURRENT_SHEET_NAME}, 1, 1)&lt;BR /&gt;);&lt;/PRE&gt;</description>
    <pubDate>Sun, 13 Apr 2008 12:28:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-04-13T12:28:38Z</dc:date>
    <item>
      <title>How to output row numbers from a multi-sheet excel input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-output-row-numbers-from-a-multi-sheet-excel-input/m-p/2213736#M10881</link>
      <description>Hello, 
&lt;BR /&gt;I'm reading a 5 sheet Excel workbook and doing some exception reporting (validations) on this worksheet. For example, I output NULL records, duplicates etc. I want to write out the Sheet Name and the Sheet Row number for each of the rows that I flag so that users can easily find the worksheet/row to fix the problem. 
&lt;BR /&gt;I have tried this in a tPerlRow (that follows the tFileInputExcel) which gives me a line number in total. 
&lt;BR /&gt;@output_row = @input_row ;
&lt;BR /&gt;$output_row = "ROW_NUMBER--&amp;gt;" . (1+sequence('s2',1,1)) ;
&lt;BR /&gt;If there are 10 rows in each of the 5 worksheet (in reality the row numbers change all the time though the worksheets are always the same) and it catches the last row in the 5th worksheet as incorrect, it gives me #50 which is not very useful to the users. I want to tell them that this row is "ROW 10 from SHEET_5" or something like that. 
&lt;BR /&gt;The above example works fine with single sheet workbooks. Btw, I add 1 to the sequence above as I am skipping the header row in the excel worksheets. 
&lt;BR /&gt;Is there a solution to this? I was not able to access anywhere a SHEET NAME to provide. If I cannot provide the sheet name, is it possible to re-set the sequence number after each sheet within the workbook?
&lt;BR /&gt;Thanks in advance. 
&lt;BR /&gt;Regards,
&lt;BR /&gt;Sean</description>
      <pubDate>Sat, 16 Nov 2024 14:23:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-output-row-numbers-from-a-multi-sheet-excel-input/m-p/2213736#M10881</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to output row numbers from a multi-sheet excel input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-output-row-numbers-from-a-multi-sheet-excel-input/m-p/2213737#M10882</link>
      <description>I suppose your using the new features of tFileInputExcel (3359) and so you're not "really" with a TOS 2.3.2 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;In your tPerlRow, I suggest:&lt;BR /&gt;&lt;PRE&gt;@output_row = @input_row;&lt;BR /&gt;$output_row = sprintf(&lt;BR /&gt;    'sheet "%s", row %u',&lt;BR /&gt;    $_globals{tFileInputExcel_1}{CURRENT_SHEET_NAME},&lt;BR /&gt;    1 + sequence($_globals{tFileInputExcel_1}{CURRENT_SHEET_NAME}, 1, 1)&lt;BR /&gt;);&lt;/PRE&gt;</description>
      <pubDate>Sun, 13 Apr 2008 12:28:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-output-row-numbers-from-a-multi-sheet-excel-input/m-p/2213737#M10882</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-13T12:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to output row numbers from a multi-sheet excel input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-output-row-numbers-from-a-multi-sheet-excel-input/m-p/2213738#M10883</link>
      <description>A big thanks to you! This works nicely for me. 
&lt;BR /&gt;You are right. It is slightly modified TOS 2.3.2. 
&lt;BR /&gt;Q. When I do the Control-Space Bar, I do not see the CURRENT_SHEET_NAME attribute. How do I go about looking for these attributes? What component file will be the one I need to look at? 
&lt;BR /&gt;Q. Also why does something simple like this does not work for me. It gives me zero for all rows. 
&lt;BR /&gt;$output_row = sprintf('%u', $_globals{tFileInputExcel_1}{NB_LINE}); 
&lt;BR /&gt;Thanks. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Sean</description>
      <pubDate>Sun, 13 Apr 2008 23:00:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-output-row-numbers-from-a-multi-sheet-excel-input/m-p/2213738#M10883</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-13T23:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to output row numbers from a multi-sheet excel input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-output-row-numbers-from-a-multi-sheet-excel-input/m-p/2213739#M10884</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Q. When I do the Control-Space Bar, I do not see the CURRENT_SHEET_NAME attribute. How do I go about looking for these attributes? What component file will be the one I need to look at?&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;In the tFileInputExcel_perl.xml component description file, you have:&lt;BR /&gt;&lt;PRE&gt;	&amp;lt;RETURNS&amp;gt;&lt;BR /&gt;		&amp;lt;RETURN NAME="NB_LINE" TYPE="INTEGER" AVAILABILITY="AFTER" /&amp;gt;&lt;BR /&gt;		&amp;lt;RETURN NAME="CURRENT_SHEET" TYPE="STRING" AVAILABILITY="FLOW" /&amp;gt;&lt;BR /&gt;		&amp;lt;RETURN NAME="CURRENT_SHEET_NAME" TYPE="STRING"&lt;BR /&gt;			AVAILABILITY="FLOW" /&amp;gt;&lt;BR /&gt;		&amp;lt;RETURN NAME="CURRENT_SHEET_POSITION" TYPE="STRING"&lt;BR /&gt;			AVAILABILITY="FLOW" /&amp;gt;&lt;BR /&gt;	&amp;lt;/RETURNS&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;These are the global variables related to tFileInputExcel.&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Q. Also why does something simple like this does not work for me. It gives me zero for all rows. &lt;BR /&gt;$output_row = sprintf('%u', $_globals{tFileInputExcel_1}{NB_LINE});&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Because NB_LINE is available only once the whole data flow is over.</description>
      <pubDate>Mon, 14 Apr 2008 00:33:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-output-row-numbers-from-a-multi-sheet-excel-input/m-p/2213739#M10884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-14T00:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to output row numbers from a multi-sheet excel input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-output-row-numbers-from-a-multi-sheet-excel-input/m-p/2213740#M10885</link>
      <description>Sweet! Thanks for that quick reply. You guys are spoiling me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Mon, 14 Apr 2008 00:41:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-output-row-numbers-from-a-multi-sheet-excel-input/m-p/2213740#M10885</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-14T00:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to output row numbers from a multi-sheet excel input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-output-row-numbers-from-a-multi-sheet-excel-input/m-p/2213741#M10886</link>
      <description>i have excel file -2007 (file name - customer) 
&lt;BR /&gt;and its excel sheet 
&lt;BR /&gt;1 - client
&lt;BR /&gt;2 - user 
&lt;BR /&gt;and i want to count the both sheet rows .
&lt;BR /&gt;i used tFileRowCount but its not support xlsx or excel 2007 sheet .
&lt;BR /&gt;show me snapshoots
&lt;BR /&gt;thanks 
&lt;BR /&gt;Naveen Dewase</description>
      <pubDate>Mon, 26 Sep 2011 09:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-output-row-numbers-from-a-multi-sheet-excel-input/m-p/2213741#M10886</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-26T09:02:05Z</dc:date>
    </item>
  </channel>
</rss>

