Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
mgsteiner
Contributor
Contributor

How to catch tFTP Exception TimeOut

Dear all,

I have an issue with a job doing SFTP sessions. My scenarion is as follow:

tFtpConnection_1 --> tFtpFileList --> <tFtpGet> --> tFtpClose

The issue comes because very often I'm getting the error "

java.net.SocketTimeoutException:connect timed out"

So, I wonder how can I catch this Exception in order to avoid the job error and retry for a couple of times , and only then produce the error in the job.

Any idea?

Thanks a lot for your help

BR

Max

Labels (2)
2 Replies
Anonymous
Not applicable

Hi

which component the error occurs? one more question, do you want to retry several times for the same file or ignore the current file if the job fails to get it and continue to get next file?

 

Regards

Shong

mgsteiner
Contributor
Contributor
Author

Hi,

 

The error occurs in the component tFTPFileList where I'm using a connection previously done with the component tFTPConnection

 

java.net.SocketTimeoutException:connect timed out

 

 

It does not really matter about the retry. I just now want to be able to catch this error somehow in order to avoid a FAIL termination.