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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Iterate the zip file

Hi All,
my first post here 0683p000009MACn.png. I can read and iterate the normal text file but can't do the same process to the zip file. Any suggestion ? 
tFileList_1      ------------------iterate---------------- tFileUnarchive_1
Directory: "*dir"                                                   Archive file : "((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))"
Filemask: *.zip                                                     Extraction directory : "*.dir"

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,
For your  tFileList, could you please try to choose filelist type as "Both" and check out "Generate Error if no file found" to see if it works?
Have you tried to switch from "Designer" to "Code" tab to see if there is any error in java code?
Best regards
Sabrina
0683p000009MFWh.png 0683p000009MFWm.png 0683p000009MFNw.png

View solution in original post

9 Replies
Anonymous
Not applicable
Author

Hi,
Why did you use *.dir in your directory fileld? Are you .zip files saved in one folder or several folders? Or on server?
Have you already checked component references about:TalendHelpCenter:tFileList and TalendHelpCenter:tFileUnarchive?
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi xdshi,
Thanks for the reply 0683p000009MACn.png
I've checked component references about: TalendHelpCenter:tFileList and  TalendHelpCenter:tFileUnarchive and follow the step. I've also google the same problem but it can't work on mine.
tFileList is iterate well with other file others than .zip file.
*dir = C:\Users\a\b\c\mysourcezipfolder
.zip files saved in one folder






Regards
Amir
0683p000009MFU8.png
Anonymous
Not applicable
Author

Hi,
We designed a demo job for your use case. It works well on our side.
Could you please check out "Die on error" option on tfileunarchive to see if there is any error message printed on console?
Best regards
Sabrina
Anonymous
Not applicable
Author

hi Sabrina 0683p000009MACn.png,
I've checkout the 'Die on error'
Starting job SMS at 15:19 15/07/2016.
[statistics] connecting to socket on port 3772
[statistics] connected
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
 The method add(String) in the type List<String> is not applicable for the arguments ()
 at amir_got_talend.sms_0_1.SMS.tFileList_1Process(SMS.java:356)
 at amir_got_talend.sms_0_1.SMS.runJobInTOS(SMS.java:1011)
 at amir_got_talend.sms_0_1.SMS.main(SMS.java:845)
Job SMS ended at 15:19 15/07/2016. [exit code=0]




Much thanks,
Amir
0683p000009MFWX.png
Anonymous
Not applicable
Author

Hi,
Would you mind posting your tfilelist component setting screenshot into forum also?
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi Sabrina 0683p000009MACn.png,
Attached below is tFileList_1



and the tFileUnarchive_1


0683p000009MFWc.png


Thanks 0683p000009MACn.png

Amir
0683p000009MFWd.png
Anonymous
Not applicable
Author

Hi,
For your  tFileList, could you please try to choose filelist type as "Both" and check out "Generate Error if no file found" to see if it works?
Have you tried to switch from "Designer" to "Code" tab to see if there is any error in java code?
Best regards
Sabrina
0683p000009MFWh.png 0683p000009MFWm.png 0683p000009MFNw.png
Anonymous
Not applicable
Author

Hi Sabrina,
thanks for your time 0683p000009MACn.png. I've just tick the 'Uncompress as zip file' and the file process smoothly.




Best Regards,

Amir
Anonymous
Not applicable
Author

Hi,
Great this issue is fixed. Thanks for your feedback.
Best regards
Sabrina