back to forum.

Topic: No preview data available

Topic by
diddy

2010-04-23
12:46

No preview data available

Hi,
I just downloaded datacleaner and installed it with the MySQL connector. When I connect to our database and start the profiler, I can preview the data of some tables, but other ones don't show any data in the preview.
Those tables that don't show any preview data do in fact have data in them, as I checked by using MySQL Query Browser. Is this a bug or do I have to change some settings somewhere?
Thanks,
Diddy

Reply by
kasper

2010-04-23
13:29
Hi Diddy,

Sounds weird. Can you run a profile on those tables that won't preview?

To help find out what the problem is, try running DataCleaner using either the .cmd (windows) or .sh (linux/mac) launchers. This will bring up a console where you can perhaps take a look for any error messages.

Reply by
diddy

2010-04-23
16:00
Thanks for your reply. I get following error msg:
ERROR JdbcDataSetStrategy - java.sql.SQLException: Cannot convert value '0000-00-00 00:00:00' from column 4 to TIMESTAMP.

I guess this is down to JDBC. As I have no rights to change the table, is there a way that I can still use the datacleaner with this table?

Reply by
kasper

2010-04-23
17:33
You can always choose not to profile that particular Timestamp-column (remove it from your data selection). But that might have importance to your profile task... Hmm.

Reply by
diddy

2010-04-23
20:24
Yes, true. But the main problem is, that I would like to use the preview as well. Normally, in Query Clients that depend on JDBC you can specify in the settings what should happen to 0 dates. Maybe this is something you could add as well?

Reply by
kasper

2010-04-24
13:39
Sounds like a viable solution. I'm a bit amazed that the MySQL driver throws a SQLException because of this though. There would be nothing wrong with just returning null, new Date(0) or something like that... I will create an issue for it right away. In the mean time, could you perhaps create an example dataset for us and attach it to the issue as an .sql script?

Reply by
kasper

2010-04-24
13:41
Here's the issue url:

http://eobjects.org/trac/ticket/380

Reply by
kasper

2010-04-24
19:21
Diddy, can you paste in a bit more of the error message. In particular I would be interested in a stack trace with line numbers for all dk.eobjects.* classes ...

Reply by
kasper

2010-04-24
19:36
Nevermind - I've recreated it myself :)

Reply by
kasper

2010-04-24
19:42
AND I've found a workaround. In you MySQL connection string, append this:
?zeroDateTimeBehavior=convertToNull
ie. something like this:
jdbc:mysql://localhost/mydb?zeroDateTimeBehavior=convertToNull
The error is described here:
http://forums.mysql.com/read.php?39,43138,43195

Reply by
diddy

2010-04-24
19:51
Hi Kasper,
Sorry for not being able to respond earlier! Thanks a lot for your great support! I'll test this on Monday when I am back to work.
Thanks,
Diddy

Reply by
diddy

2010-04-26
09:14
Hi Casper,
I tested this now and it is working excellently! Thanks a lot!
Best regards,
Diddy

You need to be logged in to participate

In order to post your own comments on this topic, you need to be logged in.

Username:

Log in by clicking the login link at the top of the screen

 

Go back to forum.