# DeadLock Error when sending Mass Emails

**URL:** https://forum.mautic.org/t/deadlock-error-when-sending-mass-emails/7773
**Category:** Development
**Created:** [March 3, 2017, 3:08pm UTC](https://forum.mautic.org/t/deadlock-error-when-sending-mass-emails/7773 "2017-03-03T15:08:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![michelmelad](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@michelmelad](https://forum.mautic.org/u/michelmelad)
#### Post date: [March 3, 2017, 3:08pm UTC](https://forum.mautic.org/t/deadlock-error-when-sending-mass-emails/7773/1 "2017-03-03T15:08:45Z")

</div>

Hi  
  
I’m using Mautic V1.4.1 and I receive this error randomly when sending Mass Emails Using Mandrill  
  
  
  
[2017-03-01 15:25:05] mautic.CRITICAL: Uncaught PHP Exception DoctrineDBALDBALException: “An exception occurred while executing ‘INSERT INTO email\_stats (email\_address, date\_sent, is\_read, is\_failed, viewed\_in\_browser, date\_read, tracking\_hash, retry\_count, source, source\_id, tokens, copy, open\_count, last\_opened, open\_details, email\_id, lead\_id, list\_id, ip\_id, copy\_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)’ with params:  
  
…  
  
…  
  
…  
  
…  
  
  
  
SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction at /home/XXXXX/public\_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php:165)”} []  
  
  
  
any suggestions ?

---

<div class="post-metadata">

### Author: ![michelmelad](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@michelmelad](https://forum.mautic.org/u/michelmelad)
#### Post date: [March 3, 2017, 3:08pm UTC](https://forum.mautic.org/t/deadlock-error-when-sending-mass-emails/7773/2 "2017-03-03T15:08:45Z")

</div>

Hi  
I’m using Mautic V1.4.1 and I receive this error randomly when sending Mass Emails Using Mandrill

[2017-03-01 15:25:05] mautic.CRITICAL: Uncaught PHP Exception DoctrineDBALDBALException: "An exception occurred while executing ‘INSERT INTO email\_stats (email\_address, date\_sent, is\_read, is\_failed, viewed\_in\_browser, date\_read, tracking\_hash, retry\_count, source, source\_id, tokens, copy, open\_count, last\_opened, open\_details, email\_id, lead\_id, list\_id, ip\_id, copy\_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)’ with params:  
…  
…  
…  
…

SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction at /home/XXXXX/public\_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php:165)"} []

any suggestions ?
