Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] unable to convert MySQL data/time value to System.DateTime

$
0
0

Ok, with your details I was able to reproduce your error  . Great!


I did that by inserting some invalid values:



If I convert the "0000-00-00" to "NULL" everything works fine:



Is it possible for you to to change the mysql original value "0000-00-00" to "1900-01-01" or to NULL? 


Cheers,

Renato


Lasse Frederiksen wrote:

Hi Renato thx for the fast answer and testing. 


Let me see if I can answer in a way that make sense I'm very newbe with this software :)


I use OutSystems Integration Studio 10.0 to import my external database with users. the connection in the ServiceCenter works! I can fetch data by connecting the OutSystems Integration Studio and then import it, in to my Mobil app. But in the MySql I have a column with dates. but some of the dates in the column is empty or have a 0000-00-00 I think that is the problem because if I don't import that column, I don't get an error can fetch the database. I search around on google and found that when people have that problem they have to add some code telling it to allow data's that is like mine: "Allow Zero Datetime" but I have no clue where I should write that command or if it will solve the problem.


I have also tried to set the DBMS to MySql but that give an error I have to use (all)


What are you using to make the connection between the service ServiceCenter and to outsystems service studio? 



Here you can see my connection path:



Then one column that is highlightet is the one that makes the problem:







here is the problem:





Thank you for trying to help me out :)


Best regards


Lasse




Viewing all articles
Browse latest Browse all 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>