-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate entry for key 'content_elementId_siteId_unq_idx' #410
Comments
@cc000001 Thanks for sharing the issue here. We would need some more details to debug that issue, we have tried at our end to reproduce the issue but was not able to reproduce. We have test couple of scenarios:
It would be great if you can provide few more details about the this order like:
In case the order was created before upgrade then:
It would be easy to debug this issue if we could know what were the order/files statuses while the plugin was updated. |
Hi @shnsumit Thanks for the reply! The order we were testing was created after the upgrade to 2.2.3 We’ve also just tested an order that was created before the upgrade (which had previously applied drafts correctly) and received the same error.
Here’s the full activity log from our original test order:
The order status does seem to be getting updated and the changes in the order file are recognised, but no draft is created |
Hi @shnsumit Hope all is well. Just wondering if you had any update on this please? |
@cc000001 Hi, Would like to know if it is possible to get admin access to any dev/stage environment to get more information? |
Hi @shnsumit |
We've recently upgraded the translations plugin on a craft 3 site from 2.1.4 to 2.2.3, and now when trying to apply a translation to a channel section we see the following error and the draft doesn't get created:
12/22/2022 – Could not update draft Error: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '9892-5' for key 'content_elementId_siteId_unq_idx' The SQL being executed was: UPDATE
content
SETelementId
=9892,siteId
=5,title
='Ventilation',dateUpdated
='2022-12-22 09:20:32' WHEREid
=8728We are using the Local Export/Import translator with XML files.
Craft: 3.7.62
Translations: 2.2.3
PHP: 7.4
The text was updated successfully, but these errors were encountered: