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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
DBLONDEL1643728674
Contributor III
Contributor III

tSendMail Status

Hello,

I have an issue with tSendMail ... first, it works (in PRODUCTION) 99,99%, but sometimes I have issues, it never stops.

it is a classical tSendMail with Microsoft account and 1 file attached. the entire job usually last 2 minutes.

But, sometimes, it never stops ... blocking the next schedulling of the process.

You can see in the execution logs that the the tSendMail starts ... but never ended.

1.Do you know how to get a status of this tSendMail after a few minutes ?

2.If not, do you know how to interrupt a job after 10 minutes execution, even if not ended ? (

I mean, with a talend component inside the job ... do you know if such component exist ?

)

thanks in advance for you answers.

0693p00000AZywGAAT.png0693p00000AZyywAAD.png

Labels (3)
6 Replies
Anonymous
Not applicable

Hello,

Is there any connection timeout exception when tSendMail is executed for a second or third time?

Here is a 'Die on error' check box on tSendMail component which is used to catch an error during the job execution.

Best regards

Sabrina

DBLONDEL1643728674
Contributor III
Contributor III
Author

Hello Sabrina,

thank you for taking some time to look at my problem. As you can see, there is only one tentative to connect to smtp ... and it is successfull ... then, it never goes out the component ...

regards

Damien

Anonymous
Not applicable

Hello,

If you want to stop your job when Execution Time is too long, please try this way.

  1. Use a tPreJob to link to a tJava component. Calculate the current time and set it to the globalMap
  2. In your tMap, create a tMap boolean variable (between the input and output tables) and use your start time globalMap value and compare to the current time (use the TalendDate routine). If the time difference is within 10 secs, set to True, else set to False.
  3. Create another tMap output for when the time has expired. Use the tMap output filtering to decide which output to use based on the tMap variable result. For the output when you have run out of time, add any columns you may wish to report have not been done in time and connect that output to whatever component will fulfill your logging. Then connect that component to a tDie using a RunIf condition with some logic to identify that you do indeed want to kill the process (this is required because outputs from tMap components are always triggered even if there is no data).

Here is online component reference TalendHelpCenter: tDie

Best regards

Sabrina

 

DBLONDEL1643728674
Contributor III
Contributor III
Author

Thank you for your efforts. I understand what you write but as you can see on the screen copy and associated message in the run logs, I have a display from tWarn before tSendMail, then I have a message 'connection so smtp has succeeded' ... and then, nothing. BUT as you can see, just after the tsendMail, I have another tWarn component ...

 

So, I am "entering" into the tSendMail ... but never go out ...

 

no tmap ... the tsendMail may have issues but is not allowing any interaction ...

 

regards

Damien

Anonymous
Not applicable

@Damien BLONDEL​, I am using Microsoft account to send email in my job every day, I don't have the problem so far, here is my settings, can you check if you have something different?

0693p00000Aaa9NAAR.pngtsendmail is a component that works independently, can you try to change your job tSendEmail--main--tWarn to tSendEmail--OncomponentOK--tWarn? It will make the job more readable.

Where is the job executed? Talend Studio or TMC/TAC or third-party scheduler?

Regards

Shong

DBLONDEL1643728674
Contributor III
Contributor III
Author

Bonjour Shong,

thank you for your answer. I have exactly the same settings on the tSendMail. I have splitted the mail into 5 as I am sending 5 files attached (size under the limit of my company's microsoft subscription limit) and will evaluate the impact in the coming hours.

I am using Talend Cloud Studio but job is executed on our own Windows Server (with a remote engine).

regards

Damien