Hi,
I have the following problem. I load 3 tables to a dataset aaco, and then perform some operations on two tables (insert 1 row in the first table, update one field in the second), and try to call dataAdapter.Upd ate method, and I get an exception.
Tables:
- audits (id, object id, ...)
- controlledObjet cs (id, ...)
[c# code]
OleDbCommandBui lder myCommandBuilde r = new OleDbCommandBui lder(aacoDataAd apter);
aacoDataAdapter .Update(ds, "audits");
aacoDataAdapter .Update(ds, "controlledObje cts"); <=* exception thrown here
[/code]
aacoDataAdapter - OleDbDataAdapte r
ds - DataSet
* Exception: "Missing the DataColumn 'objectId' in the DataTable 'controlledObje cts' for the SourceColumn 'objectId'."
But there cannot be such a column, because it is in the audits table, not in the controlledObjec ts one :|
I have the following problem. I load 3 tables to a dataset aaco, and then perform some operations on two tables (insert 1 row in the first table, update one field in the second), and try to call dataAdapter.Upd ate method, and I get an exception.
Tables:
- audits (id, object id, ...)
- controlledObjet cs (id, ...)
[c# code]
OleDbCommandBui lder myCommandBuilde r = new OleDbCommandBui lder(aacoDataAd apter);
aacoDataAdapter .Update(ds, "audits");
aacoDataAdapter .Update(ds, "controlledObje cts"); <=* exception thrown here
[/code]
aacoDataAdapter - OleDbDataAdapte r
ds - DataSet
* Exception: "Missing the DataColumn 'objectId' in the DataTable 'controlledObje cts' for the SourceColumn 'objectId'."
But there cannot be such a column, because it is in the audits table, not in the controlledObjec ts one :|
Comment