# Element duplicated in a Mautic campaign only when the campaign started

**URL:** <https://forum.mautic.org/t/element-duplicated-in-a-mautic-campaign-only-when-the-campaign-started/21331>\
**Category:** Mautic 4 Install/Upgrade Support\
**Created:** [October 20, 2021, 8:55am UTC](https://forum.mautic.org/t/element-duplicated-in-a-mautic-campaign-only-when-the-campaign-started/21331 "2021-10-20T08:55:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zwf](https://avatars.discourse-cdn.com/v4/letter/z/f475e1/32.png) [@zwf](https://forum.mautic.org/u/zwf)\
**Post date:** [October 20, 2021, 8:55am UTC](https://forum.mautic.org/t/element-duplicated-in-a-mautic-campaign-only-when-the-campaign-started/21331/1 "2021-10-20T08:55:32Z")

</div>

**Your software**  
My Mautic version is: mautic-v4.01 My PHP version is: 7.4.19   
My Database type and version is: MariaDB : 10.5.12  
Number of contact in database : +100K, 15K campaign

**My problem is** : I edited a test campaign. Once ready and test I duplicated it to be the final campaign, after I strated it, I saw tham the first email would be sent twice to contacts wich never happened in my 4/5 previous test campaign. I sued the feature drag and to link the element sometimes (email sent link to a tracking by exemple). When I checked I saw this (in red) : a duplication of the element on the left corner…

The log also said :  
[2021-10-20 10:29:22] mautic.ERROR: CAMPAIGN: An exception occurred while executing ‘INSERT INTO campaign\_lead\_event\_log (rotation, date\_triggered, is\_scheduled, trigger\_date, system\_triggered, metadata, channel, channel\_id, non\_action\_path\_taken, event\_id, lead\_id, campaign\_id, ip\_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)’ with params [1, “2021-10-20 08:29:22”, 0, null, 1, “a:0:{}”, null, null, 0, 1587, “185383”, 104, null]: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`mautic`.`campaign_lead_event_log`, CONSTRAINT `FK_B7420BA171F7E88B` FOREIGN KEY (`event_id`) REFERENCES `campaign_events` (`id`) ON DELETE CASCADE)

 ![2021-10-20_10h30_24](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/e/e13e542dae50e586b3c7e94c5e86b2371a12d012.png)

_Steps I have tried to fix the problem_ : limite the number of email sent to 1 per day and delete those extra element that were duplicated.
