# Exception thrown by social:monitoring command

**URL:** https://forum.mautic.org/t/exception-thrown-by-social-monitoring-command/20896
**Category:** Product Support
**Created:** [September 15, 2021, 7:41pm UTC](https://forum.mautic.org/t/exception-thrown-by-social-monitoring-command/20896 "2021-09-15T19:41:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![elsaadj](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/elsaadj/32/672_2.png) [@elsaadj](https://forum.mautic.org/u/elsaadj)
#### Post date: [September 15, 2021, 7:41pm UTC](https://forum.mautic.org/t/exception-thrown-by-social-monitoring-command/20896/1 "2021-09-15T19:41:50Z")

</div>

**Your software**  
My Mautic version is: 4.0.0  
My PHP version is: 7.4.23  
My Database type and version is: mysql Ver 15.1 Distrib 10.2.40-MariaDB, for Linux (x86\_64)

**Your problem**  
My problem is: exception when running social:monitoring command

## These errors are showing in the log: /usr/bin/php /var/www/html/mautic/bin/console mautic:social:monitoring -vvv Executing Monitor Item 1 No new tweets

Result Code: 0  
Executing Monitor Item 2  
Creating new lead  
An exception occurred while executing 'INSERT INTO leads (is\_published, date\_added, created\_by, created\_by\_user, date\_modified, modified\_by, modified\_by\_user, checked\_out, checked\_out\_by, checked\_out\_by\_user, points, last\_active, internal, social\_cache, date\_identified, preferred\_profile\_image, title, firstname, lastname, company, position, email, phone, mobile, address1, address2, city, state, zipcode, timezone, country, owner\_id, stage\_id) VALUES (?, ?,

SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect string value: ‘\xF0\x9F\x8C\x8D \x0A…’ for column `mautic`.`leads`.`social_cache` at row 1

In ORMException.php line 145:  
[Doctrine\ORM\ORMException]  
The EntityManager is closed.

Exception trace:  
at /var/www/html/mautic/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php:145  
Doctrine\ORM\ORMException::entityManagerClosed() at /var/www/html/mautic/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:809

Steps I have tried to fix the problem:  
disable twitter hashtags monitoring
