Catch HTTP 404 error within tFileFetch

One Star

Catch HTTP 404 error within tFileFetch

Dear all,
I'm using tFileFetch to retrieve several files stored on different HTTP servers.
If one HTTP server doesn't respond, I want to log a message into an Oracle database.
It seems that if I connect a tFileFetch to a tWarm component with a OnComponentError relation, nothing happens.
Is there any way to catch this error (java.lang.Exception: Method failed: HTTP/1.1 404 Not Found) ?
Thanks in advance,
Renaud
Community Manager

Re: Catch HTTP 404 error within tFileFetch

hi
Using the tLogCapture to capture the java exception. The job looks like:
tFileFetch
tLogCapture---tLogRow
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download