
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
tfileUnarchive Error : "invalid distance too far back"
I am trying to unzip multiple files.
I tried following the solution posted here https://community.talend.com/t5/Design-and-Development/resolved-unzip-multiple-folder-and-iterating-... but I am getting an error which I am unable to resolve.
Exception in component tFileUnarchive_1 (tJobETL1) java.util.zip.ZipException: invalid distance too far back at java.util.zip.InflaterInputStream.read(Unknown Source) at java.util.zip.GZIPInputStream.read(Unknown Source) at com.talend.compress.zip.Util.output(Util.java:66) at sb_etl_test1.tjobetl1_0_1.tJobETL1.tFileList_1Process(tJobETL1.java:577) at sb_etl_test1.tjobetl1_0_1.tJobETL1.runJobInTOS(tJobETL1.java:915) at sb_etl_test1.tjobetl1_0_1.tJobETL1.main(tJobETL1.java:764) [statistics] disconnected
Below is my workflow
tFileList ~~~~~~~~> tFileUnarchive
Error
tFileListComponent
tUnArchiveComponent
Thanks.
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I got it working.
I changed tFTPGet component.
from ___ Transfer Mode = ascii
to ___ Transfer Mode = binary
That solved the issue.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In many cases this error occurs for corrupted archive files.
Are you able to rebuild the archive or to get a new or different one?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You were right. That Zip file was corrupt. I used tFTPGet to download that zip file.
When I download the same file using WINSCP it comes out fine. Where am I going wrong ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I got it working.
I changed tFTPGet component.
from ___ Transfer Mode = ascii
to ___ Transfer Mode = binary
That solved the issue.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Great!
Binary mode is required as soon as the transfer is not for a pure text file, that explains why you get the error for an archive file.
Thank's to mark your case as solved.
