Post a reply

Write your message and submit

Options

Click in the dark area of the image to send your post.

Go back

Topic review (newest first)

Ahhouais
2012-04-24 15:56:55

It works ! Thank you very much Shong.

Ahhouais
2012-04-24 15:26:19

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

shong
2012-04-24 15:07:30

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

Ahhouais
2012-04-24 12:59:16

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

pedro
2012-04-24 11:27:54

Hi Ahhouais

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

Regards,
Pedro

Ahhouais
2012-04-24 11:12:27

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.

Board footer

Powered by FluxBB