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 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog