Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

UpdateBatchSize 2 throws NullReferenceException if OracleDataAdapter updating 1 row

Yannik_Apr 5 2019 — edited May 2 2019

Hello,

OracleDataAdapter.OnRowUpdated throws NullReferenceExecption if updating 1 row with OracleDataAdapter, with UpdateBatchSize set to 2 (anything above 1). (Btw. the DB row is updated).

See attached example c# project. Create Table DDL is included in textfile Oracle SQL create table TESTODP.sql ++++ run insert into testodp values(1,0)

https://www.file-upload.net/download-13560890/TestODP.zip.html

NameValueType
StackTrace" bei Oracle.ManagedDataAccess.Client.OracleDataAdapter.OnRowUpdated(RowUpdatedEventArgs value)\r\n bei System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping)\r\n bei Oracle.ManagedDataAccess.Client.OracleDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping)\r\n bei System.Data.Common.DbDataAdapter.UpdateFromDataTable(DataTable dataTable, DataTableMapping tableMapping)\r\n bei System.Data.Common.DbDataAdapter.Update(DataTable dataTable)\r\n bei TestODP.Program.Main(String[] args) in \\XXX\\TestODP\\TestODP\\Program.cs:Zeile 33."string

Greetz

Yannik

Comments

Processing

Post Details

Added on Apr 5 2019
7 comments
536 views