-2147217864 Row cannot be located for updating.
From: Vineet (Vineet_at_newsgroup.nospam)
Date: 12/27/04
- Next message: Matt S: "Easy way to exclude duplicate entries in recordset...."
- Previous message: Frank Hickman [MVP]: "Re: Key column information insufficient....ERROR"
- Next in thread: Kevin Yu [MSFT]: "RE: -2147217864 Row cannot be located for updating."
- Reply: Kevin Yu [MSFT]: "RE: -2147217864 Row cannot be located for updating."
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 27 Dec 2004 10:11:01 -0800
I am using ADODB recordset and OLEDB to connect to ORACLE database from MS
PROJECT.
In one of my MS PROJECTS when I try to write to ORACLE database I get this
error
"-2147217864 Row cannot be located for updating. Some values may have been
changed since it was last read".
The interesting thing to note that error is thrown not at update command but
at recordset.AddNew command. And the error is generated after few iterations
are done.
Here is the code snippet .......
If rsSchedule.EOF Or rsSchedule.BOF Then 'No Records exists for selected
Project ID
'Insert data in recordsets
For rsRows = 0 To aryRows - 1
rsSchedule.AddNew
rsSchedule.Fields(0) = CInt(arydata(rsRows, 0))
rsSchedule.Fields(1) = CInt(arydata(rsRows, 1))
rsSchedule.Fields(2) = CStr(arydata(rsRows, 2))
rsSchedule.Fields(3) = CInt(arydata(rsRows, 3))
rsSchedule.Fields(4) = arydata(rsRows, 4)
rsSchedule.Fields(5) = arydata(rsRows, 5)
rsSchedule.Fields(6) = arydata(rsRows, 6)
rsSchedule.Fields(7) = arydata(rsRows, 7)
rsSchedule.Fields(8) = CInt(arydata(rsRows, 8))
rsSchedule.Fields(9) = CStr(arydata(rsRows, 9))
rsSchedule.Fields(10) = arydata(rsRows, 10)
rsSchedule.Fields(11) = CStr(arydata(rsRows, 11))
Next rsRows
rsSchedule.Update
rsSchedule.MoveLast
Else if .........
I will appreciate any help.
Thanks
- Next message: Matt S: "Easy way to exclude duplicate entries in recordset...."
- Previous message: Frank Hickman [MVP]: "Re: Key column information insufficient....ERROR"
- Next in thread: Kevin Yu [MSFT]: "RE: -2147217864 Row cannot be located for updating."
- Reply: Kevin Yu [MSFT]: "RE: -2147217864 Row cannot be located for updating."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|