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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

DateTime issue

Hi,
I'm reading data through tMysqlInput and storing it as it is in a csv file. The table has a DateTime column and it sometimes has a value of '0000-00-00 00:00:00' but this value is stored in csv as '0002-12-31 00:00:00'. I'm also attaching tMysqlInput table schema. any idea?
Labels (2)
13 Replies
Anonymous
Not applicable
Author

Hi
What's the expected result if the datetime is "0000-00-00 00:00:00" in Mysql table? Below is an expression used to set the column as null if the datetime is "0000-00-00 00:00:00" , on tMap:
row1.columnName.getTime()<=0?null:row1.columnName
Anonymous
Not applicable
Author

Has this issue been resolved? I added the parameter "noDatetimeStringSync=true&zeroDateTimeBehavior=convertToNull" to my MySQL connection as I saw in a few posts. When I use the querybuilder to query the data, it shows null. However, when I look at my data in a tLogRow, I'm seeing 31-12-0002. When I try to put this value into another database, it gives a error that says "Only dates in the AD era are accepted."
Anonymous
Not applicable
Author

Test response.
_AnonymousUser
Specialist III
Specialist III

Somebody's have fixed this problem ? 
Thank's