facing error in delivery sending; Cannot insert duplicate key row in object in neolaneprod.elcbroadlogdcns with unique index id | Community
Skip to main content
Level 4
November 30, 2023
Solved

facing error in delivery sending; Cannot insert duplicate key row in object in neolaneprod.elcbroadlogdcns with unique index id

  • November 30, 2023
  • 2 replies
  • 1167 views

Hi All, 

 

I am facing error in delivery sending; Cannot insert duplicate key row in object in neolaneprod.elcbroadlogdcns with unique index id

upon checking i identified this same duplicate broadlog id is present for one the delivery sent in 2013

here elcbroadlogdcns  is custom table same as broadlogrcp keep broadlog enteriescan someone please help me with quick resolution for this??

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Craig_Thonis

Hi Shrutii,

Typically duplicate keys occur when the sequence in the table is close or has run out of available IDs within its 32bit sequence. To address this, there are a few best practices:

 

1) Ensure that in the Deployment wizard that you are keeping only the minimum required logs (see the purge settings in deployment wizard) as long log retention uses up available IDs.

2) Ensure that the Database Cleanup workflow is running fully as that workflow is in charge of purging logs and old deliveries, etc. noted in step 1.

3) Ensure that tables are using custom sequences versus the out of the box xtkNewID. This was one of the biggest causes of this issue, as in older versions of Campaign the tables all shared the same sequence, meaning that the number of available IDs would run out very quickly.

4) If none of the above works, you can consider deploying negative IDs which effectively doubles the amount of available IDs for any given sequence.

 

This type of error has been covered multiple times within the forums and in Campaign Support if you need additional details and assistance. See below:

https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/error-duplicate-key-value-violates-unique-constraint-quot/td-p/598769

Regards,

Craig

2 replies

ParthaSarathy
Community Advisor
Community Advisor
November 30, 2023

Hi @shrutii ,

Restart your workflow, mostly this error will get fixed. 

And, to troubleshoot further, go to Tools > Advanced > Deployment wizard > Next > Purge Data

Check how many days has been specified for delivery logs.

By default it will be 180 days. When it is set to 180 days, 6 months old record will get deleted from cleanup workflow. If the primary key sequence for broad Log schema exhaust, it will again start from beginning. If the delivery log value has been modified in your instance to store delivery logs more than 180 days (Not recommended though...), then you might get this error. 

~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups
Craig_Thonis
Adobe Employee
Craig_ThonisAdobe EmployeeAccepted solution
Adobe Employee
November 30, 2023

Hi Shrutii,

Typically duplicate keys occur when the sequence in the table is close or has run out of available IDs within its 32bit sequence. To address this, there are a few best practices:

 

1) Ensure that in the Deployment wizard that you are keeping only the minimum required logs (see the purge settings in deployment wizard) as long log retention uses up available IDs.

2) Ensure that the Database Cleanup workflow is running fully as that workflow is in charge of purging logs and old deliveries, etc. noted in step 1.

3) Ensure that tables are using custom sequences versus the out of the box xtkNewID. This was one of the biggest causes of this issue, as in older versions of Campaign the tables all shared the same sequence, meaning that the number of available IDs would run out very quickly.

4) If none of the above works, you can consider deploying negative IDs which effectively doubles the amount of available IDs for any given sequence.

 

This type of error has been covered multiple times within the forums and in Campaign Support if you need additional details and assistance. See below:

https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/error-duplicate-key-value-violates-unique-constraint-quot/td-p/598769

Regards,

Craig

ShrutiiAuthor
Level 4
November 30, 2023

@craig_thonis 

 

please tell me where and how we can change the sequence

 

please help to share screenshot if poosible

reaally looking for quick response as this is impacting the prod