Need to read 1st record from each sheet from single Excel.

Four Stars

Need to read 1st record from each sheet from single Excel.

Hi,

 

I have multiple sheet in single excel , I have to read header of each sheet.

Please post the solution.

 

Thanks

Lokesh

 

Sixteen Stars TRF
Sixteen Stars

Re: Need to read 1st record from each sheet from single Excel.

Use tFileInputExcel with the following settings:
- All sheets option ticked
- Limit = 1
- Affect each sheet option ticked
- First column and Last column depending on your sheets structure
This suppose the header line is the 1rst one. Else, use the Header field to set the number of lines to ignore before the header.

TRF
Nine Stars

Re: Need to read 1st record from each sheet from single Excel.

does each sheet has same number of header attributes?

 

Regards,

Veeru Boppudi
Four Stars

Re: Need to read 1st record from each sheet from single Excel.

Hi ,

 

 Thanks for replying,

 

i have tried this option before but it is give header of the 1st sheet, not from all sheets.

Please let me know some other option.

 

thanks

lokesh

 

 

Four Stars

Re: Need to read 1st record from each sheet from single Excel.

Hi Veeranjaneyulu,

 

Yes, All sheets have same number of attributes.

 

Thanks

Lokesh

Nine Stars

Re: Need to read 1st record from each sheet from single Excel.

Hi Lokesh,

I am not sure about options in tfileInputExcel to restrict header record.

May be you can try with tMap to filter only header record from all sheets.

 

Test_Header1.PNG

 

Here create sequence based on sheet name and filter first record from each sheet.

 

Regards,

 

 

 

 

Veeru Boppudi

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog