Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Logs from tLogCatcher to an email

Hi,
I have this job, as in the attached image.

My point is that I want to send the output of the logs to an email to get notified. 
I use in the tJavaRow:
globalMap.put("errorCode", input_row.message);
and in the tSendEmail:
"Hello, 
The input message is " +   (String)globalMap.get("errorCode")

However, the   (String)globalMap.get("errorCode") part always returns null, while the error message is different.
Could you help me with this?
Thanks a lot!
0683p000009MCwf.png
Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi 
tLogCatcher start to work only when a Java exception occurs during the job execution, the global variable will be null without error. In your job, make sure the 'die on error' option on tFileInputDelimited is checked, so that the Java exception will be thrown out and catched by tLogCatcher.
Regards
Shong

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Hi 
tLogCatcher start to work only when a Java exception occurs during the job execution, the global variable will be null without error. In your job, make sure the 'die on error' option on tFileInputDelimited is checked, so that the Java exception will be thrown out and catched by tLogCatcher.
Regards
Shong
Anonymous
Not applicable
Author

You are right, thanks a lot 0683p000009MACn.png