Groups | Blog | Home
all groups > dotnet distributed apps > november 2003 >

dotnet distributed apps : Data Adapter Insert Failure



TSawyer
11/30/2003 9:10:57 PM
Hello,

I have the strangest problem. I have a winforms
application that has a strongly typed dataset. There is
one main parent datatable "Customers" and a
child "Invoices". Inserting a new customer into the db
and then updating the dataset with the new row using the
adapter is no problem. But when I follow it with an
insert of a new invoice row(regardless of it being a new
customer row or an existing one), the insert into the db
works fine, but updating the dataset with the new row
throws a null object reference error somewhere in the
inner workings of .Net. I've tried manually updating the
row but I still get the same error.

Has anyone come across this before or is there any known
Miha Markic
12/1/2003 9:02:35 AM
Hi,

Do you have a relation defined in dataset between customer and invoice?
(It isn't defined by default)
--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com

[quoted text, click to view]

AddThis Social Bookmark Button