Hi,
We are getting the dump DBSQL_DUPLICATE_KEY_ERROR in EM system.
Error analysis
An exception has occurred which is explained in more detail below. The
exception is assigned to class 'CX_SY_OPEN_SQL_DB' and was not caught in
procedure
"UPDATE_DB_TABLE" "(FORM)", nor was it propagated by a RAISING clause.
Since the caller of the procedure could not have anticipated this
exception, the current program was terminated.
The reason for the exception is:
When an Open SQL array insert is performed, trying to insert a record
into the database table "/SAPTRX/EH_STHST" causes the function to terminate if
a record with the same key already exists.
(When an Open SQL individual record insert is performed, this situation
does not cause the function to terminate. SY-SUBRC is set to 4 instead.).
More Info on the Issue
The primary key of /saptrx/eh_sthst table is guid + Sequence no.
To keep multiple values in this table, sequence no. should be different as guid will remain same for each event.
Upon checking, I found out that the system tried to push same guid and sequence no. for one event to /saptrx/eh_sthst table which resulted in these dumps.The logic to change the sequence no. is a standard one and is set to trigger in the set status activity.
Is there any OSS Note/ or any other way already available to mitigate the Issue. ..
Thanks in advance