• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [resolved] Tfilefetch catch exception

#1 2010-07-19 12:48:10

kankioo
New member
Registered: 2010-07-19
Posts: 3

[resolved] Tfilefetch catch exception

Hi,

From a TMysqlInput, I retrieve rows to do a TFileFetch per row (HTTP access). Some http returns a java exception not logged thru the Tlogcatcher. How can I do to log all the java exceptions ?

Regards


Uploaded Images

Offline

#2 2010-07-19 13:36:37

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

Re: [resolved] Tfilefetch catch exception

Hi
Do you check the box' die on error' on tFileFetch?

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

#3 2010-07-19 16:07:20

kankioo
New member
Registered: 2010-07-19
Posts: 3

Re: [resolved] Tfilefetch catch exception

Hi Shong,

I don't want the job to be stopped because of a 404 in one of my http request. I want the job to continue and the exception to be logged.

Regards

Offline

#4 2010-07-20 05:00:41

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

Re: [resolved] Tfilefetch catch exception

hi

I don't want the job to be stopped because of a 404 in one of my http request. I want the job to continue and the exception to be logged.

You need redesign the job, put the tFileFetch to a child job, the job looks like:

father job:
tMysqlInput(base)->tFlowToIterate--iterate--tRunJob(call the child job)

tPostJob-->.....


child job:
tFixedFlowInput---tFileFetch

tLogCapture--tMap--tFileOutputDelimited

on tRunJob, call the child job, uncheck the box' die on child job error', pass each row to child job via context variables(see [Forum, topic 1654] Passing context parameters in a tRunJob) .
on tFixedFlowInput, define each row passed from father job.
on tFileFetch, check box 'die on error'

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 2010-07-20 15:04:13

kankioo
New member
Registered: 2010-07-19
Posts: 3

Re: [resolved] Tfilefetch catch exception

Hi Shong,

It finally works. Thanks a lot. I just replaced tFileOutputDelimited by a tFileOutputExcel because i did not find to append on a tFileOutputDelimited file.

Regards

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [resolved] Tfilefetch catch exception

Board footer

Powered by FluxBB