Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
DM2017
Contributor II
Contributor II

How to pass defult talend date to the output

Hi All,

 

I have a output table(mysql) which has a date field called syncdate format (YYYY-mm-dd hh:mm:ss) ex(2018-01-01 00:23:30). I need to load with date, whenever talend job runs. basically need to insert current date. In the tmap expression I have entered the defult function. The test result is coming correct as required but the job fails.

 

Kindly help in providing correct expression. Please check attached image for more details.

Labels (2)
1 Solution

Accepted Solutions
manodwhb
Champion II
Champion II

You no need to use "TalendDate.getCurrentDate() " exactly and on the output coulmn date format speciy in "YYYY-mm-dd hh:mm:ss" and it works.

View solution in original post

9 Replies
manodwhb
Champion II
Champion II

 check the date format in mysql table ? and job is failling at tMsqloutput component right?

DM2017
Contributor II
Contributor II
Author

`SyncedDate` datetime DEFAULT NULL my output, Job failing in tmap

manodwhb
Champion II
Champion II

what is the error and please attahce the screenshot.

DM2017
Contributor II
Contributor II
Author

PFA error details


Capture1.JPG
DM2017
Contributor II
Contributor II
Author

One more screenshot


Capture.JPG
manodwhb
Champion II
Champion II

i do not findthe error in that screnshot.

manodwhb
Champion II
Champion II

I have used,its working for me check.

 


Untitled.png
manodwhb
Champion II
Champion II

You no need to use "TalendDate.getCurrentDate() " exactly and on the output coulmn date format speciy in "YYYY-mm-dd hh:mm:ss" and it works.

DM2017
Contributor II
Contributor II
Author

Thanks a lot Manohar. It's working now.