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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] tsendmail give error arguments from job in message field

Hello erverybody,
How i can give tsendmail the error message with which comes from my Job when an error occurs into the message Field.
Are there any preconfigured args ?
regards john 
Labels (2)
16 Replies
Anonymous
Not applicable
Author

Hy,
Before your tSendMail, use a tLogCatcher to catch errors (java, tDie & tWarn).
And, in your tSendMail, print the message from the tLogCatcher.
Arnaud
Anonymous
Not applicable
Author

Hello Arnaud,
My Job is builded in this way which you've mentioned before already.
But it seems that only an connect with the tLogCatcher component isn't enough. The message from the incoming mail doesn't show any errors. 
So may  i have to set some Settings or Arguments  ?
regards john 
Anonymous
Not applicable
Author

Verify, on tLogCatcher, all checkboxes are checked. If the error don't catch, you must modify your job to generate an error with a tDie ou a tWarn.
Do you have a screenshot of your job please ?
Anonymous
Not applicable
Author

Hi,
You can use OnComponentError to connect tDie.
The workflow should be:
tfileinput----->tfileoutput -----OnComponentError---> tDie
tLogCatcher ---main---> tSendMail
Don't forget to check the 'die on error' option so that the job will stop once an error occurs.
Best regards
Sabrina
Anonymous
Not applicable
Author

Hello 
First of all
 Thanks for Helping 
So now .. my Job looks like this :
0683p000009MBQc.pngI have added the Tdie Component which has Sabrinia already mentioned.
Here my Tsendmail Settings:
0683p000009MCXX.pngHere the tlog catcher settings:
0683p000009MCXc.pngAnd here is the Message which comes to the MailInbox:
0683p000009MCXh.png
regards john 
Anonymous
Not applicable
Author

Great, please, could you mark this topic as resolved ?
Arnaud
Anonymous
Not applicable
Author

Hello Arnauld
Why resolved ?
I want to get an error message in the mail from my job.
But there is no error message in the Email.
Do i overlook sth. ?
regards john 
Anonymous
Not applicable
Author

Hi,
You got your email without any error message in it? Did you pass the error message to tSendMail message body?
Best regards
Sabrina
Anonymous
Not applicable
Author

Sorry ;-)
In your tSendMail, you can use data from tLogCatcher : see your row2 schema.
For example, you can write in your tSendMail message : 
"Hello,
There is a problem.
Job " + row2.job + "
"+row2.moment+"
"+row2.project+" ("+row2.context+") / "+row2.origin+"
"+row2.type+" : "+row2.message+" ("+row2.code+")
Good Luck."