Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
mora1
Contributor

CSV to MS SQL - Date Parsing

Hi,

I am try to move the CSV to MSSQL using tmap and getting the following error. The Date in csv file is like 12/3/2020 12:03 which is dd-MM-yyyy HH:mm

Error:

Couldn't parse value for column 'date' in 'row4', value is '2020-12-03 12:03:11'. Details: java.lang.RuntimeException: Unparseable date: "2020-12-03 12:03:11"

I am new to Talend. Can you help me to resolve this issue. The attached image shows how I am mapping the CSV file.

Thanks,

Mora

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi

As the error shows, the date format is "2020-12-03 12:03:11", please check if there exist different date format in your CSV file. The date pattern for "2020-12-03 12:03:11" is "yyyy-MM-dd HH:mm:ss"

 

Regards

Shong

View solution in original post

2 Replies
Anonymous
Not applicable

Hi

As the error shows, the date format is "2020-12-03 12:03:11", please check if there exist different date format in your CSV file. The date pattern for "2020-12-03 12:03:11" is "yyyy-MM-dd HH:mm:ss"

 

Regards

Shong

mora1
Contributor
Author

Thanks a lot shong.. Changing the Date format to yyyy-MM-dd HH:mm:ss resolved the issue.