InvalidCastException... arggggggg


Author
Message
Ulrik Mueller
Ulrik Mueller
StrataFrame Beginner (32 reputation)StrataFrame Beginner (32 reputation)StrataFrame Beginner (32 reputation)StrataFrame Beginner (32 reputation)StrataFrame Beginner (32 reputation)StrataFrame Beginner (32 reputation)StrataFrame Beginner (32 reputation)StrataFrame Beginner (32 reputation)StrataFrame Beginner (32 reputation)
Group: Forum Members
Posts: 18, Visits: 59
I'm getting total crazy now.  In my standard application framework I have made several Maintenance Dialogs - but suddenly on a new dialog I'm getting InvalidCastException on everything.....  It states the it is "Unable to cast of type 'System.DBNull' to type 'System.String'" on my primary key field.

The destination table and it happens everytime I click the NEW buttom!!!!!

What the he.. is going on...  Am I missing a flag or.....

Hope that some of you can come up with a way to get me back on track!

Regards
Ulrik

Reply
Ulrik Mueller
Ulrik Mueller
StrataFrame Beginner (32 reputation)StrataFrame Beginner (32 reputation)StrataFrame Beginner (32 reputation)StrataFrame Beginner (32 reputation)StrataFrame Beginner (32 reputation)StrataFrame Beginner (32 reputation)StrataFrame Beginner (32 reputation)StrataFrame Beginner (32 reputation)StrataFrame Beginner (32 reputation)
Group: Forum Members
Posts: 18, Visits: 59
Why why why ...

After I went to the BOM and changed the Field Properties on the PK field it seems to work without any exception.

I changed th "NULL Value Option" to "Return Alternate on Null" and let it set nospace "" in the replacement value!

I just don't know why I have this kind of problems with this specific BO!

/ULRIK

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search