# Error Duplicate entry for key 'uk\_ecm\_files'

**URL:** <https://www.dolibarr.org/forum/t/error-duplicate-entry-for-key-uk-ecm-files/21773>\
**Category:** Using my Dolibarr\
**Tags:** Users-Groups, v14, Upgrades, Linked-Files, Issue\
**Created:** [January 29, 2022, 9:23pm UTC](https://www.dolibarr.org/forum/t/error-duplicate-entry-for-key-uk-ecm-files/21773 "2022-01-29T21:23:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohaamaad](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/m/f04885/32.png) [@Mohaamaad](https://www.dolibarr.org/forum/u/Mohaamaad)\
**Post date:** [January 29, 2022, 9:23pm UTC](https://www.dolibarr.org/forum/t/error-duplicate-entry-for-key-uk-ecm-files/21773/1 "2022-01-29T21:23:48Z")

</div>

Hello

this error appeared after upgrade from 13 to 14.0.5

Error Duplicate entry for key ‘uk\_ecm\_files’

when I go to this link

user/card.php?id=2

any idea ?

---

<div class="post-metadata">

**Author:** ![aljawaid](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/aljawaid/32/388_2.png) [@aljawaid](https://www.dolibarr.org/forum/u/aljawaid)\
**Post date:** [February 11, 2022, 7:37pm UTC](https://www.dolibarr.org/forum/t/error-duplicate-entry-for-key-uk-ecm-files/21773/2 "2022-02-11T19:37:55Z")

</div>

I use to get this message when my pictures for a product were restored between upgrades / migrations. I ignored - I only got an alert, not a full page error.

This error only happened once per product for me. So if there is no loss of data or associated files to the user card… see if you keep getting the same error for the same card.

---

<div class="post-metadata">

**Author:** ![Plows](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/plows/32/5660_2.png) [@Plows](https://www.dolibarr.org/forum/u/Plows)\
**Post date:** [April 23, 2023, 2:57pm UTC](https://www.dolibarr.org/forum/t/error-duplicate-entry-for-key-uk-ecm-files/21773/3 "2023-04-23T14:57:12Z")

</div>

Hi,  
i am getting this error sometimes with new email tickets, i am on 17.0.1, i believe that on 15.0.0 all was fine.

Error DB\_ERROR\_RECORD\_ALREADY\_EXISTS : Duplicate entry ‘ticket/TS2304-0524-(2).-1’ for key ‘uk\_ecm\_files’  
Error DB\_ERROR\_RECORD\_ALREADY\_EXISTS : Duplicate entry ‘ticket/TS2304-0524-(1).-1’ for key ‘uk\_ecm\_files’  
Error DB\_ERROR\_RECORD\_ALREADY\_EXISTS : Duplicate entry ‘ticket/TS2304-0524-(2).-1’ for key ‘uk\_ecm\_files’  
Error DB\_ERROR\_RECORD\_ALREADY\_EXISTS : Duplicate entry ‘ticket/TS2304-0524-(1).-1’ for key ‘uk\_ecm\_files’

under Tickets / Document are Files (1) and (2) which i cant read, when i delete these files, the ticket is OK without the above error.
