[resolved] catch error log from tDie "and" JAVA exception

Highlighted
One Star

[resolved] catch error log from tDie "and" JAVA exception

Hi,
Actually new to TOS for DI...
I need to catch errors from a job and output them into a delimited file.
I've got 2 different error inputs:
- a tDie with my own error message ("source connection unavailable")
- a JAVA exception generated by my tAS400Connection
I have inserted a tLogCatcher retrieving JAVA exceptions and tDies (checkboxes)
Then, I connected it to a tMap to retrieve only moment, code, origin and message.
And finally, a tLogRow to visualize my log.
On run, i get my lines correctly:
2015-03-05 10:39:25|1|tDie_1|source connection unavailable
2015-03-05 10:39:25|1|tAS400Connection_1|java.sql.SQLException:The application server rejected the connection. (User ID is not known.:CABBAGE)
Now, i replace my tLogRow by a tFileOutputDelimited to write my log instead.
On run, i can only get my JAVA exception:
2015-03-05 10:43:19;tAS400Connection_1;java.sql.SQLException:The application server rejected the connection. (User ID is not known.:CABBAGE)
If I uncheck JAVA exceptions into the tLogCatcher, I'm finally able to get my tDie:
2015-03-05 10:44:36;tDie_1;source connection unavailable
Question is : why can't I write both of them into the file? Seems strange to me...
Thanks by advance for the time spent on my issue...
PS : Talend Open Studio for Data Integration (5.6.1.20141207_1530)

Accepted Solutions

Re: [resolved] catch error log from tDie "and" JAVA exception

Hello, are you sure you checked the 'Append' option on your tFileOutputDelimited ?

All Replies

Re: [resolved] catch error log from tDie "and" JAVA exception

Hello, are you sure you checked the 'Append' option on your tFileOutputDelimited ?
One Star

Re: [resolved] catch error log from tDie "and" JAVA exception

Well spotted...
Didn't know this option could cause this kind of behavior.
As a beginner, I'm still groping for the answers step by step.
You made my day. Thanks.
I set this topic as resolved...

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