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

 

Fifteen Stars TRF
Fifteen 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

Highlighted
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 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download