PC Review


Reply
Thread Tools Rate Thread

DataAdapter Fill Exception

 
 
Fla
Guest
Posts: n/a
 
      3rd Mar 2009
Good Morning.
I get the following exception when I try to store the content of a
Microsoft Database (.MDB File) in a table, with DbDataAdapter.Fill
method.

System.InvalidOperationException: The provider could not determine the
Object value. For example, the row was just created, the default for
the Object column was not available, and the consumer had not yet set
a new Object value. at System.Data.OleDb.ColumnBinding.Value()

The stack-trace of the exception is the reported below:

System.InvalidOperationException: The provider could not determine the
Object value. For example, the row was just created, the default for
the Object column was not available, and the consumer had not yet set
a new Object value. at System.Data.OleDb.ColumnBinding.Value() at
System.Data.OleDb.OleDbDataReader.GetValues(Object[] values) at
System.Data.ProviderBase.DataReaderContainer.CommonLanguageSubsetDataReader.GetValues
(Object[] values) at System.Data.ProviderBase.SchemaMapping.LoadDataRow
() at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping
mapping) at System.Data.Common.DataAdapter.FillFromReader(DataSet
dataset, DataTable datatable, String srcTable, DataReaderContainer
dataReader, Int32 startRecord, Int32 maxRecords, DataColumn
parentChapterColumn, Object parentChapterValue) at
System.Data.Common.DataAdapter.Fill(DataSet dataSet, String srcTable,
IDataReader dataReader, Int32 startRecord, Int32 maxRecords) at
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset,
DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String
srcTable, IDbCommand command, CommandBehavior behavior) at
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill
(DataSet dataSet)

Does anyone could give me any advice?

Thanks in advance
 
Reply With Quote
 
 
 
 
a a r o n _ k e m p f
Guest
Posts: n/a
 
      3rd Mar 2009
Jet shouldn't be used with .NET because it isn't support natively on
X64




On Mar 3, 1:53*am, Fla <fla_gro...@tiscali.it> wrote:
> Good Morning.
> I get the following exception when I try to store the content of a
> Microsoft Database (.MDB File) in a table, with DbDataAdapter.Fill
> method.
>
> System.InvalidOperationException: The provider could not determine the
> Object value. For example, the row was just created, the default for
> the Object column was not available, and the consumer had not yet set
> a new Object value. at System.Data.OleDb.ColumnBinding.Value()
>
> The stack-trace of the exception is the reported below:
>
> System.InvalidOperationException: The provider could not determine the
> Object value. For example, the row was just created, the default for
> the Object column was not available, and the consumer had not yet set
> a new Object value. at System.Data.OleDb.ColumnBinding.Value() at
> System.Data.OleDb.OleDbDataReader.GetValues(Object[] values) at
> System.Data.ProviderBase.DataReaderContainer.CommonLanguageSubsetDataReader.GetValues
> (Object[] values) at System.Data.ProviderBase.SchemaMapping.LoadDataRow
> () at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping
> mapping) at System.Data.Common.DataAdapter.FillFromReader(DataSet
> dataset, DataTable datatable, String srcTable, DataReaderContainer
> dataReader, Int32 startRecord, Int32 maxRecords, DataColumn
> parentChapterColumn, Object parentChapterValue) at
> System.Data.Common.DataAdapter.Fill(DataSet dataSet, String srcTable,
> IDataReader dataReader, Int32 startRecord, Int32 maxRecords) at
> System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset,
> DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String
> srcTable, IDbCommand command, CommandBehavior behavior) at
> System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32
> startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
> CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill
> (DataSet dataSet)
>
> Does anyone could give me any advice?
>
> Thanks in advance


 
Reply With Quote
 
Mary Chipman [MSFT]
Guest
Posts: n/a
 
      3rd Mar 2009
If you want help debugging code, you should probably post at least a
snippet so people can see what you're trying to do. A stack trace
isn't much use if you have no idea which line of code caused it.

--Mary

On Tue, 3 Mar 2009 01:53:31 -0800 (PST), Fla <(E-Mail Removed)>
wrote:

>Good Morning.
>I get the following exception when I try to store the content of a
>Microsoft Database (.MDB File) in a table, with DbDataAdapter.Fill
>method.
>
>System.InvalidOperationException: The provider could not determine the
>Object value. For example, the row was just created, the default for
>the Object column was not available, and the consumer had not yet set
>a new Object value. at System.Data.OleDb.ColumnBinding.Value()
>
>The stack-trace of the exception is the reported below:
>
>System.InvalidOperationException: The provider could not determine the
>Object value. For example, the row was just created, the default for
>the Object column was not available, and the consumer had not yet set
>a new Object value. at System.Data.OleDb.ColumnBinding.Value() at
>System.Data.OleDb.OleDbDataReader.GetValues(Object[] values) at
>System.Data.ProviderBase.DataReaderContainer.CommonLanguageSubsetDataReader.GetValues
>(Object[] values) at System.Data.ProviderBase.SchemaMapping.LoadDataRow
>() at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping
>mapping) at System.Data.Common.DataAdapter.FillFromReader(DataSet
>dataset, DataTable datatable, String srcTable, DataReaderContainer
>dataReader, Int32 startRecord, Int32 maxRecords, DataColumn
>parentChapterColumn, Object parentChapterValue) at
>System.Data.Common.DataAdapter.Fill(DataSet dataSet, String srcTable,
>IDataReader dataReader, Int32 startRecord, Int32 maxRecords) at
>System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset,
>DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String
>srcTable, IDbCommand command, CommandBehavior behavior) at
>System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32
>startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
>CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill
>(DataSet dataSet)
>
>Does anyone could give me any advice?
>
>Thanks in advance

 
Reply With Quote
 
Michel Walsh
Guest
Posts: n/a
 
      3rd Mar 2009
Sounds like you tried to append a record where a field was required, a field
not allowing null, a field designed without default value, and no value was
specified by your code for that field.


Vanderghast, Access MVP


"Fla" <(E-Mail Removed)> wrote in message
news:a5de29aa-e23f-4a19-89d2-(E-Mail Removed)...
> Good Morning.
> I get the following exception when I try to store the content of a
> Microsoft Database (.MDB File) in a table, with DbDataAdapter.Fill
> method.
>
> System.InvalidOperationException: The provider could not determine the
> Object value. For example, the row was just created, the default for
> the Object column was not available, and the consumer had not yet set
> a new Object value. at System.Data.OleDb.ColumnBinding.Value()
>
> The stack-trace of the exception is the reported below:
>
> System.InvalidOperationException: The provider could not determine the
> Object value. For example, the row was just created, the default for
> the Object column was not available, and the consumer had not yet set
> a new Object value. at System.Data.OleDb.ColumnBinding.Value() at
> System.Data.OleDb.OleDbDataReader.GetValues(Object[] values) at
> System.Data.ProviderBase.DataReaderContainer.CommonLanguageSubsetDataReader.GetValues
> (Object[] values) at System.Data.ProviderBase.SchemaMapping.LoadDataRow
> () at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping
> mapping) at System.Data.Common.DataAdapter.FillFromReader(DataSet
> dataset, DataTable datatable, String srcTable, DataReaderContainer
> dataReader, Int32 startRecord, Int32 maxRecords, DataColumn
> parentChapterColumn, Object parentChapterValue) at
> System.Data.Common.DataAdapter.Fill(DataSet dataSet, String srcTable,
> IDataReader dataReader, Int32 startRecord, Int32 maxRecords) at
> System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset,
> DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String
> srcTable, IDbCommand command, CommandBehavior behavior) at
> System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32
> startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
> CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill
> (DataSet dataSet)
>
> Does anyone could give me any advice?
>
> Thanks in advance



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataAdapter Fill Exception Fla Microsoft Access 2 3rd Mar 2009 07:47 PM
Using DataAdapter.Fill() Micus Microsoft ADO .NET 4 24th Oct 2006 09:23 PM
DataAdapter.Fill(dataset): Null exception Stanav Microsoft ASP .NET 2 14th Nov 2005 01:50 PM
Access DataAdapter exception John Dann Microsoft ADO .NET 1 11th Oct 2004 09:30 AM
Re: DataAdapter Not Catching SQL Exception Cor Microsoft VB .NET 2 3rd Mar 2004 02:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:29 AM.