cancel
Showing results for 
Search instead for 
Did you mean: 

Primary key violation and Deadlock issue

siba_pkd21
Participant
0 Kudos

Hi All

There were some jobs fetches Primary Key violation error and some other jobs fetches Dead lock error, Can anyone please help me with the possible Root Cause-RCA for this.

View Entire Topic
Sruti_P
Participant
0 Kudos

Hi Siba,

This a common error presuming the target as SQL. You can update the target in the mapping in the bulk loader tab as "Truncate". If the Truncate option is already enabled and you are still getting error you can increase the maximum rejects value in the form under the bulk loader tab with 1000 or more. It will write the duplicate values in BODS error log and will not write it in SQL DB but this will decrease the performance time of the job. If none of this is option for you the data has to be fixed or filtered from the source to avoid the PRIMARY KEY constraint.

Dead lock can be cleared by SQL DB ream you can connect with them and provide the updates of DB and the deadlock ID to kill it in DB side.

Regards,

Sruti

siba_pkd21
Participant
0 Kudos

Hi Sruti,

Thanks for providing such detailed explanation.

Actually the option "Delete data from table before loading" in Options tab in 2 Target tables (in 2 DF) already checked with row per commit 10000.

So while trying to check option Truncate in Bulk loader tab, the option "Delete data from table before loading" in Option tab has became unchecked.

So in this case what to do?

Regards,

Siba