Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Writing to two sheets in the same excel file from one job

Hi all,
I have a problem writing to two different sheets in the same excel file from the same job, below is the scenario :
tFileInputExcel - > tMap -> tReplicate .. replicate1 .. -> tFileOuputExcel(sheet1) .. replicate2 .. -> tMap -> tFileOuputExcel(sheet2)
tFileOuputExcel is the same file.
If I change one of the tFileOutputExcel file name to a different file name, then both files are created with the respective sheet names(sheet1, sheet2), however they are in different files which does not suite my purpose.
Is this a bug in Talend ?
Labels (2)
22 Replies
sjaganmo
Contributor
Contributor

Thanks so much for the quick response again. They just upgraded the java version from jdk1.8.0_74 to jdk1.7.0_97. We use OpenJDK.  But I am having this problem in both the versions in 2 different servers.
Thanks
Shuba
Anonymous
Not applicable
Author

Can you just try to install Oracle JDK? - simply unpack and set it as JAVA_HOME for your job.
sjaganmo
Contributor
Contributor

Sorry my bad, just figured we're using Oracle JDK not OpenJDK.
sjaganmo
Contributor
Contributor

Jan, Do you think that the second issue is also related to the Java settings?
2. I have sequence of jobs. The first job creates the workbook, create a sheet and then saves it. The second job should open the same workbook and append another sheet. But with .xlsx, I am getting the error that the file is not found. 
Thanks
shuba
Anonymous
Not applicable
Author

File not found means file not found.... It is sometimes a timing problem but my API checks the existence of the file before it tries to open it. This helps to find problems much better. Do you use network attached storage? Sometimes NAS file systems have a synchronizing delay.
sjaganmo
Contributor
Contributor

This is the actual error I am getting
2016-02-11 23:33:13|lQqABm|20160211233302_3NxWK|yPGLrN|GRP_ETL|jo_GRP_RPT_0003_generateServiceSummaryXls_J1|Default|6|Java Exception|tFileExcelWorkbookOpen_1|java.lang.IllegalStateException:Zip File is closed|1
I used an open and save in my previous job that writes this file.
sjaganmo
Contributor
Contributor

Hi Jan,
Any idea why I'm getting this error? Appreciate your help on this..
Thanks
Shuba
Anonymous
Not applicable
Author

Without knowing your job design, I have no idea. Could you please post a screenshot of your job design?
sjaganmo
Contributor
Contributor

screenshot… .zip
Please see my screenshots in the attached zip file.
Thanks!
sjaganmo
Contributor
Contributor

Screesnshots attached.