Hi all,
I am sending the data to data base from SAP R/3 through SAP XI. I am using parent-child relation ship in the destination side. I am getting the foll. error at reciever jdbc adater side.
Error:
Last message processing started 18:01:12 2005-02-11, Error: TransformException error in xml processor class, rollback:
Error processing request in sax parser: Error when executing statement for table/stored proc.
'CUSTOMER_MASTER': java.sql.SQLException:
Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Violation of PRIMARY
KEY constraint 'PK_CUSTOMER_MASTER'. Cannot insert duplicate key in object 'CUSTOMER_MASTER'.
can any body help me .
Regards,
sekhar
Hi,
Check the primary key value in the record that you are inserting into the DB Table.
Looks like you have already have the same primary key column value available in the DB table.
Regards,
Sridhar
Hi,
Pls try following:
1. Use only UPDATE_INSERT as this will Update if record is already present or INERT if not present.
2. Put the child table call in another statement. As of now you have both calls in one statement.
Let me know your findings.
Thanks
Ashish
Add a comment