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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

file ftp'd from remote to local throws error when reading the file

Hi Team,

I had ftp 'd a file from remote server to my local server with filemask option specified as

context.filename+context.rundt+context.extension and the file got ftp'd successfully.

But when i tried to read the same file through tfileinput component i get the error as 

"(No such file or directory)"

Below is the error message -

[FATAL] (main): goc_etl.jo_test_sftp_0_1.jo_test_sftp - tFileInputPositional_1 /local_directory_path/filename_yyyymmdd*.txt (No such file or directory).

In the tfileinput component Filename/stream i had given as 

local_directory_path+context.filename+context.run_dt+context.extn.

 

I am new to talend and not understanding where have i gone wrong. Please guide me on this.

 

 

 

Labels (2)
5 Replies
TRF
Champion II
Champion II

"/local_directory_path/filename_yyyymmdd*.txt" 

you need to remove the * in the filename for tFileInputPositional_1.

TRF
Champion II
Champion II

Did this help?
If so thanks to mark your case as solved.
Anonymous
Not applicable
Author

Hi,

 

Thanks for your reply.

 

"/local_directory_path/filename_yyyymmdd*.txt"

you need to remove the * in the filename for tFileInputPositional_1.

Ans:In the tfileinput component Filename/stream i had given as

local_directory_path+context.filename+context.run_dt+context.extn.

 

Below is the error message which i get on running the job -

[FATAL] (main): goc_etl.jo_test_sftp_0_1.jo_test_sftp - tFileInputPositional_1 /local_directory_path/filename_yyyymmdd*.txt (No such file or directory).

Anonymous
Not applicable
Author

No ..because i havent given * in the tfileinputpositional component. what i had given was
local_directory_path+context.filename+context.run_dt+context.extn.
TRF
Champion II
Champion II

* is a special character (joker).
Cannot be part of a real filename.