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

"File Not Found" exception for tFileUnarchive

Hi all,
As a part of my daily job i have to copy files from source directory and paste them in one single directory and process each file at a time and after processing the first file i have to move the processed first file to another directory and remove it from the directory where the file is processed so that it will avoid processing the same file when the loop is repeated. To accomplish all the above mentioned process i have done one job. All the settings are given correctly for each component, but when i run my job an exception is thrown "File Not Found".

But, Literally the file with the name is present in the specified location, i don't understand why i am getting this exception, can any correct me what is wrong in my job and what should be corrected to run my job with out any errors?
I had attached the images of my job and the error which i got while executing my job.
Kindly help me to resolve the problem.
Thanks and Regards,
Pavan
Labels (2)
19 Replies
Anonymous
Not applicable
Author

Hi all,
Any help for the above mentioned problem, Kindly help me with a solution.
Thanks and Regards,
Pavan
Anonymous
Not applicable
Author

Hi Pavan
Finally I find the reason.
Type in ((String)globalMap.get("tFileList_3_CURRENT_FILEPATH")) instead of ((String)globalMap.get("tFileList_3_CURRENT_FILE")) on tFileUnarchive.
Regards,
Pedro
Anonymous
Not applicable
Author

Hi Pedro,
I had tried the way you mentioned it worked, but the primary purpose of my job is to process each single file from the folder containing all files and delete the only single processed file from the source folder and when the loop again executes for the second time the job should process the second file and remove the second file from the source after processing and repeat the same till all the files are completed. How can this be accomplished?
Thanks and Regards,
Pavan
Anonymous
Not applicable
Author

Hi,
To accomplish the scenario which i mentioned above i had made some modifications in my job and executed but i am getting an error that file is not present at the specified location, but the file is present. If i uncheck the check box "Generate Error if File Not Found" then the job does not goes further, the loop executes 14 times and does not move further tFileList_3 component. Why is it so? Please correct me how to run my job correctly.
I had attached the images of the newly modified job
Thanks and Regards,
Pavan
_AnonymousUser
Specialist III
Specialist III

What is the value of context.filename? (is it the filename or the directory to look for the file?)
_AnonymousUser
Specialist III
Specialist III

Try putting "C:\Test" in the direcory field and context.filename+"*.tar.gz" in the file mask.
I think from what I can gather you are trying to use the directory field as directory AND filemask.
Anonymous
Not applicable
Author

Hi Elvis,
The value of context.filename is comming from tJava where i had declared.
Thanks and Regards,
Pavan
What is the value of context.filename? (is it the filename or the directory to look for the file?)
Anonymous
Not applicable
Author

Hi Elvis,
I had done the same way you mentioned, it doesn't work, "File not Found" error is coming when i run the job after making the changes which you had specified
Thanks and Regards,
Pavan

Try putting "C:\Test" in the direcory field and context.filename+"*.tar.gz" in the file mask.
I think from what I can gather you are trying to use the directory field as directory AND filemask.
Anonymous
Not applicable
Author

Hi all,
Any solution for the above mentioned scenario? Where should i change my job in order to run my job successfully with out errors
Thanks in advance
Thanks and Regards,
Pavan