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

 

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