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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
dipanjan93
Contributor
Contributor

Error in tSendMail component

Hello Community,

 

I'm trying to implement the below message logic inside tSendMail component -

"*********************************************************

Hello,

You are receiving this email since your job has Failed. 

Details as below :
 
Project: Pivot
Job Name: PPT_PR_Reliability
Job Status: Failed  
Error Description: "+(String)globalMap.get("err_desc") 
+"Action: Need to Rerun manually


Thanks

********************************************************
"

However, I'm getting the below error

Execution failed : Job compile errors 
At least job "PPT_PR_Reliability_file_tgt_Wrapper" has a compile errors, please fix and export again.
Error Line: 2918
Detail Message: Syntax error on tokens, delete these tokens
There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.

0683p000009M1lb.jpg0683p000009M1rx.jpg

 

Please help me in this regards.

 

Thanks in advance!

 

Best Regards,

Dipanjan

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hello,

Hello,

We made a testing from our end and it is running well in v 7.1.1.

The job looks like:

tFixedFlow-->tLogrow
...
tLogCatcher----main-->tJavaRow
|
onsubjobok
|
tSendMail
on tJavaRow:
globalMap.put("error_code", input_row.message);
on the message filed of tSendMail:

"Error Description: "+((String)globalMap.get("error_code"))+ "Action: Need to Rerun manually
Thanks
********************************************************
"
Are you able to execute a simple job successsfully in your studio? Could you please clarify in which Talend version/edition you are? What's JDK version are you using? 
0683p000009M1jl.png
Best regards
Sabrina

View solution in original post

6 Replies
Anonymous
Not applicable

Hello,

Would you mind posting your tSendMail component setting screenshots on forum? Which will be helpful for us to address your issue.

Best regards

Sabrina

dipanjan93
Contributor
Contributor
Author

Hi @xdshi,

 

Please find the tSendMail settings below  -

0683p000009M1sH.jpg

 0683p000009M1hg.jpg

Let me know if you need anything else

 

Thanks in advance!

 

Best Regards,

Dipanjan

Anonymous
Not applicable

Hello,

Talend can't change new line char automatically in tSendMail component, you have to specify it manually.

Best regards

Sabrina

 

dipanjan93
Contributor
Contributor
Author

Could you please elaborate?
dipanjan93
Contributor
Contributor
Author

Hi @xdshi,

 

I tried using "\r", "\n" as well as "\r\n". But neither of them worked for me.

 

Could you please guide me in achieving this?

 

Thanks in advance!

 

Best Regards,

Dipanjan

Anonymous
Not applicable

Hello,

Hello,

We made a testing from our end and it is running well in v 7.1.1.

The job looks like:

tFixedFlow-->tLogrow
...
tLogCatcher----main-->tJavaRow
|
onsubjobok
|
tSendMail
on tJavaRow:
globalMap.put("error_code", input_row.message);
on the message filed of tSendMail:

"Error Description: "+((String)globalMap.get("error_code"))+ "Action: Need to Rerun manually
Thanks
********************************************************
"
Are you able to execute a simple job successsfully in your studio? Could you please clarify in which Talend version/edition you are? What's JDK version are you using? 
0683p000009M1jl.png
Best regards
Sabrina