• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » tFTPFileList - How to manage exception

#1 2012-04-24 11:12:27

Ahhouais
Member
Registered: 2011-06-01
Posts: 10

tFTPFileList - How to manage exception

Hi all,

I have the following chain of components :

tOracleInput + tFlowToIterate + tFTPConnexion + tFTPFileList + tFTPGet

It allows me to download an FTP server files locally.
This string works very well.

My only problem is that, if a parameter is a problem for tFTPFileList (for example, if I ask to download to a local directory that does not exist), the entire chain stops!
I thought I could handle the exception using the OnComponentError, to move to the next download.
But it does not work. Once a plant download, all the chain stops.

Any idea to manage this kind of exception ?

Regards,

Ahhouais.

Offline

#2 2012-04-24 11:27:54

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: tFTPFileList - How to manage exception

Hi Ahhouais

Which version of TOS do you use?
In fact, if the local directory doesn't exist, it will be created.

Regards,
Pedro


Only Paranoid Survive.

Offline

#3 2012-04-24 12:59:16

Ahhouais
Member
Registered: 2011-06-01
Posts: 10

Re: tFTPFileList - How to manage exception

Hi Pedro,

Thanks for your response.
I am using a TIS 4.2.3
For the local directory, I know this issue, but... what happens if the user makes a mistake on the path a the remote directory ? This is precisely the error I have... I thought that I could manage by using the onCOmponentErrror, the job stops sad

Offline

#4 2012-04-24 15:07:30

shong
Talend team
Registered: 2007-08-29
Posts: 10299
Website

Re: tFTPFileList - How to manage exception

Hi Ahhouais

According to your description, you need to redesign the job, you want the job continue to work even though there is an error appears. The job design looks like:
parent job:
tOracleInput--main-- tFlowToIterate--iterate--tRunJob

child job:

tFTPConnexion + tFTPFileList + tFTPGet

on tRunJob, call the child job, uncheck the box 'die on error', pass value to child job if needed, see the following link to know how to pass a value from parent job to child job.
http://www.talendforge.org/forum/viewtopic.php?id=1654

Good luck!!

Best regards
Shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#5 2012-04-24 15:26:19

Ahhouais
Member
Registered: 2011-06-01
Posts: 10

Re: tFTPFileList - How to manage exception

I'll take a look. Thanks a lot Shong ! smile

Offline

#6 2012-04-24 15:56:55

Ahhouais
Member
Registered: 2011-06-01
Posts: 10

Re: tFTPFileList - How to manage exception

It works ! Thank you very much Shong.

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » tFTPFileList - How to manage exception

Board footer

Powered by FluxBB