Print Page | Close Window

Error on Default Value

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=606
Printed Date: 11-Jun-2026 at 12:22pm


Topic: Error on Default Value
Posted By: willydavidjr
Subject: Error on Default Value
Date Posted: 11-Dec-2007 at 11:46pm
Hi guys, I've encountered an error about the default value. But it seems that I generated all my fields and properties properly. This is the first time I've encountered this. What do you think is the problem here. Here is the argument exception:
 
The DefaultValue for column IsSelected is of type System.DBNull, but the column is of type System.Byte.
 
Thanks in advance!
// Willy David Jr



Replies:
Posted By: davidklitzke
Date Posted: 12-Dec-2007 at 10:57am
This seems like it might be easy for us to reproduce.  Could you send your database and .ORM file to mailto:support@ideablade.com - support@ideablade.com ?


Posted By: willydavidjr
Date Posted: 12-Dec-2007 at 4:50pm
[QUOTE=davidklitzke]This seems like it might be easy for us to reproduce.  Could you send your database and .ORM file to mailto:support@ideablade.com?%5b/QUOTE - support@ideablade.com?[/QUOTE ]
 
I think it will be quite hard to send it. The database is very large to send to an email. Anyway, what we did is we remove all the default values and we leave it blank from the original default value: new System.Byte[1]{0} . And the error doesn't occur anymore.
 
Does this advisable?
 


Posted By: davidklitzke
Date Posted: 13-Dec-2007 at 2:37pm
If it works for you, that's fine with me. 



Print Page | Close Window