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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Problem with Date import into MySQL (date imported with wrong year)

Hi all,  

I am trying to import .txt file into MySQL database, and all columns are being imported but I am having an issue with the date where the year is showing 0015 or 0016 instead of 2015 or 2016.

The date column in the .txt file

27-Jul-15
27-Jul-15
27-Jul-15
27-Jul-15
20-Oct-15
25-May-15
25-May-15
25-May-15
25-May-15

 

What is being imported into the database:

0015-07-27
0015-07-27
0015-07-27
0015-07-27
0015-07-27
0015-07-27
0015-07-27
0015-10-20
0015-05-25
0015-05-25

 

I tried ParseDate, FormatDate and even without expression but doesn't seem to solve it.

What am I doing wrong ?

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Found the issue... so simple !

the txt had the date as dd-MMM-yy while i was using dd-MMM-yyyy

cheers

View solution in original post

5 Replies
smallet
Creator II
Creator II

Hi,

 

Could you be a little more precise?

Like which product are you using? Which version?

If it's Studio, capture (at least) of your job?

 

Thx

Anonymous
Not applicable
Author

Hi smallet, 
Thanks for quick reply!

I am using Talend Open Studio for Data Integration Version: 6.4

And this is the job i am doing:

0683p000009LuRG.jpg

 

 

 

 

 

 

 

smallet
Creator II
Creator II

So, you're using the Studio, that's good to know.

Could add more information, like the original file, the job?

Anonymous
Not applicable
Author

the original file is a .txt and Date column as "dd-MMM-yyyy" as I added also as Metadata delimited file.

And Tmap as follows without any expression:

 

0683p000009Luhz.jpg

It is importing month and day correctly but the year is starting with 00 instead of 20 (0016 instead of 2016)

 

 

 

Anonymous
Not applicable
Author

Found the issue... so simple !

the txt had the date as dd-MMM-yy while i was using dd-MMM-yyyy

cheers