Skip to Content
0
Former Member
Jan 06, 2008 at 11:34 PM

Entity bean - getting Duplicate Key Exception on ejbCreate

146 Views

Hello Guys,

In one of the webdynpro applications, we had to migrate large amount of data from the other source and so we had over 5000 records in the one of the table. After the data is migrated and application is deployed, I thought it was all ok, but it was the data in between, but not at the end as you would expect. And when it could no longer insert in between, it started throwing the “Duplicate Key Exception” on ejbCreate method.

The table are created using dictionary DC. We are using SQL Server as the DB and the particular table has the primary key as big int.

Do I have to set the "Interval for Generated Primary keys' option in the ejb-j2ee-engine.xml?

Have you seen like this before? Am I missing something here? Any help would be much appreciated.

Regards,

Muthaiah

Edited by: Muthaiah Ramanathan on Jan 7, 2008 12:34 AM