# Base table or view not found: 1146 Table 'mailing.maulead\_fields' doesn't exist

**URL:** <https://forum.mautic.org/t/base-table-or-view-not-found-1146-table-mailing-maulead-fields-doesnt-exist/13822>\
**Category:** Product Support\
**Tags:** community\
**Created:** [April 8, 2020, 12:23pm UTC](https://forum.mautic.org/t/base-table-or-view-not-found-1146-table-mailing-maulead-fields-doesnt-exist/13822 "2020-04-08T12:23:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcink](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/marcink/32/2157_2.png) [@marcink](https://forum.mautic.org/u/marcink)\
**Post date:** [April 8, 2020, 12:23pm UTC](https://forum.mautic.org/t/base-table-or-view-not-found-1146-table-mailing-maulead-fields-doesnt-exist/13822/1 "2020-04-08T12:23:35Z")

</div>

**Your software**  
My Mautic version is: 2.16.1  
My PHP version is: 7.2.24

**Your problem**  
My problem is:  
The Campaign e-mails are not sent. The campaign has started, but it only changed a state and stopped on e-mail Send step.

These errors are showing in the log:  
[2020-04-08 09:20:40] mautic.NOTICE: Doctrine\DBAL\Exception\ConnectionException: An exception occurred while executing ‘SELECT c0\_.is\_published AS is\_published\_0, c0\_.date\_added AS date\_added\_1, c0\_.created\_by AS created\_by\_2, c0\_.created\_by\_user AS created\_by\_user\_3, c0\_.date\_modified AS date\_modified\_4, c0\_.modified\_by AS modified\_by\_5, c0\_.modified\_by\_user AS modified\_by\_user\_6, c0\_.checked\_out AS checked\_out\_7, c0\_.checked\_out\_by AS checked\_out\_by\_8, c0\_.checked\_out\_by\_user AS checked\_out\_by\_user\_9, c0\_.id AS id\_10, c0\_.name AS name\_11, c0\_.description AS description\_12, c0\_.publish\_up AS publish\_up\_13, c0\_.publish\_down AS publish\_down\_14, c0\_.canvas\_settings AS canvas\_settings\_15, c0\_.allow\_restart AS allow\_restart\_16, c1\_.is\_published AS is\_published\_17, c1\_.date\_added AS date\_added\_18, c1\_.created\_by AS created\_by\_19, c1\_.created\_by\_user AS created\_by\_user\_20, c1\_.date\_modified AS date\_modified\_21, c1\_.modified\_by AS modified\_by\_22, c1\_.modified\_by\_user AS modified\_by\_user\_23, c1\_.checked\_out AS checked\_out\_24, c1\_.checked\_out\_by AS checked\_out\_by\_25, c1\_.checked\_out\_by\_user AS checked\_out\_by\_user\_26, c1\_.id AS id\_27, c1\_.title AS title\_28, c1\_.description AS description\_29, c1\_.alias AS alias\_30, c1\_.color AS color\_31, c1\_.bundle AS bundle\_32, c0\_.category\_id AS category\_id\_33 FROM campaigns c0\_ LEFT JOIN categories c1\_ ON c0\_.category\_id = c1\_.id’: SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected (uncaught exception) at /home/kfam/domains/mailing.kfam.pl/public\_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 103 while running console command `mautic:campaigns:rebuild`    
[2020-04-08 09:21:26] mautic.ERROR: SCHEMA ERROR: An exception occurred while executing ‘SELECT f.alias, f.is\_unique\_identifer as is\_unique, f.type, f.object FROM maulead\_fields f WHERE f.object = ‘lead’ ORDER BY f.field\_order ASC’: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘mailing.maulead\_fields’ doesn’t exist    
[2020-04-08 10:00:02] mautic.WARNING: MaxMind license key is required.    
[2020-04-08 10:00:02] mautic.ERROR: Failed to fetch remote IP data: malformed

Steps I have tried to fix the problem:  
I’ve updated the campaigns, as well as segments but it dont helps while the db is malformed.

---

<div class="post-metadata">

**Author:** ![renzof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/renzof/32/1738_2.png) [@renzof](https://forum.mautic.org/u/renzof)\
**Post date:** [April 10, 2020, 7:17am UTC](https://forum.mautic.org/t/base-table-or-view-not-found-1146-table-mailing-maulead-fields-doesnt-exist/13822/2 "2020-04-10T07:17:28Z")

</div>

Hi,

Have you tried this  
http://[your-mautic-url]/s/update/schema  
From the troubleshooting page  
Make a backup of the dB first just in case 🙂  
By they way this url doesn’t give much feedback just be patient and let it run 🙂

> **[Troubleshooting](https://docs.mautic.org/en/troubleshooting)**
>
> . Follow these steps to solve your issue as fast as possible.My Mautic is acting weird. Even through the effort of the dev and test teams, it might happen. At first, let's try a few tricks which might fix it fast.1. Clear the cache. There are several...

---

<div class="post-metadata">

**Author:** ![marcink](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/marcink/32/2157_2.png) [@marcink](https://forum.mautic.org/u/marcink)\
**Post date:** [April 10, 2020, 6:18pm UTC](https://forum.mautic.org/t/base-table-or-view-not-found-1146-table-mailing-maulead-fields-doesnt-exist/13822/3 "2020-04-10T18:18:22Z")

</div>

Yes I’ve tried this as well as all the remaining ‘magic’ found in the installation and troubleshooting in the docs.  
Still the campaign doesn’t go further.  
If you wish we can try to look on it together via webex or skype live, so maybe its some stupidity, that I’ve set.
