Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am facing below error in tfileinputexcel component :
Exception in component tFileInputExcel_1
java.lang.ArrayIndexOutOfBoundsException: 1120256
this is because I have a corrupted file in input , but I want my job to run with non-corrupted file and handle this exception. Could you please help.
Hello,
Can you open your corrupted file with MS Excel? Are you able to create 'File Excel' in metadata wizard?
Here is online document about:TalendHelpCenter:Centralizing File Excel metadata.
Best regards
Sabrina
Hello,
Are you trying to retrieve a set of files or folders based on a filemask pattern and iterates on each unity?
What does your current job design look like?
Best regards
Sabrina
Hi Sabrina,
Let me explain you more on this :
I am working on exception handling scenarios , where i have 5 input files in a folder, and one of them is corrupted and the job is throwing below error :
Exception in component tFileInputExcel_1
java.lang.ArrayIndexOutOfBoundsException: 1120256
at jxl.read.biff.Record.<init>(Record.java:79)
at jxl.read.biff.File.next(File.java:181)
at jxl.read.biff.SheetImpl.<init>(SheetImpl.java:300)
at jxl.read.biff.WorkbookParser.parse(WorkbookParser.java:803)
at jxl.Workbook.getWorkbook(Workbook.java:271)
at test job
This is affecting the job while processing other non-corrupted files.
What I want to achieve is :
Catch the exception and process the job with non-corrupted files.
The similar scenario can be as per below :
For example : I have total 5 input files , but one of them has a different sheet name. So It will throw "Special sheet does not exists error",
But I still want to process the job with the files which have correct sheet names in them.
I hope now Im able to explain better. Job flow is :
tfilelist---iterate--> iFileinputexcel---main-->tlogrow
I even tried with on component error trigger on tDie , but its not working somehow.
Could you please help in this.
Thanks
Hello,
Make sure you have cleared 'Die on error' option on tfileinputexcel component to skip the row on error and complete the process for error-free rows.
Best regards
Sabrina
Hi,
I already did that and its still not working, I have attached screen shot now.
Regards,
Neha
Can someone please help in this requirement.
Thank you for the response Shong.
Further to add in this, what if I want to catch this exception (Print a message in the log so I can know the exception)that one file is corrupted or Sheet does not exists.
and exit the job with code 1.
Any solution for that please.
Best Regards,
Neha