Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
welshsteve
Creator
Creator

tFileOutputExcel won't overwrite a worksheet

Hi.

I have an xlsx Excel file with various worksheets in them.

I am creating a Talend job which feeds data into these worksheets.

What I need the job to do is overwrite the worksheet if it already exists each time the job is run.

 

Job Design is:

 

tDBInput >> tMap >> tFileOutputExcel

 

It doesn't seem to matter what options I pick in the tFileOutputExcel component, each time I run the job, I get the error The workbook already contains a sheet named 'ref_annuity_type'

 

The options in the component seem very limited, with no apparent option to overwrite the sheet. Can this not be done?

 

There also doesn't appear to be an option to truncate all the data in the worksheet first before re-populating.

 

Many thanks in advance.

 

Steve

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hello,

Please check "Append existing file", and check "Append existing sheet" in your tFileOutputExcel component to add the new lines both at the end of the file and the end of the Excel sheet.

Feel free to let us know if it helps.

Best regards

Sabrina

View solution in original post

1 Reply
Anonymous
Not applicable

Hello,

Please check "Append existing file", and check "Append existing sheet" in your tFileOutputExcel component to add the new lines both at the end of the file and the end of the Excel sheet.

Feel free to let us know if it helps.

Best regards

Sabrina