
13/02/2007, 08:56
|
| | Fecha de Ingreso: enero-2007
Mensajes: 80
Antigüedad: 18 años, 1 mes Puntos: 0 | |
Re: Error al pasar datos de xml a tabla en access saludos gracias por contestar, eso hice y funciona, porque lo corro con los breakpoints y me puedo dar cuenta que los valores ahora son 132.54 por ejemplo pero ahora me sale este error:
Server Error in '/xyz' Application.
--------------------------------------------------------------------------------
The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship. Change the data in the field or fields that contain duplicate data, remove the index, or redefine the index to permit duplicate entries and try again.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship. Change the data in the field or fields that contain duplicate data, remove the index, or redefine the index to permit duplicate entries and try again.
Source Error:
Line 80: .Parameters.Add("@val2", OleDbType.VarChar).Value = val2bod_num
Line 81: .Parameters.Add("@val3", OleDbType.Double).Value = val3bod_dim Line 82: .ExecuteNonQuery()
Line 83: End With
Y no se porque me sale ese problema si antes no me salia, ademas que campos permiten claves duplicadas no deberia salir eso! |