# What is the use case for this

**URL:** <https://forum.mautic.org/t/what-is-the-use-case-for-this/25995>\
**Category:** Product Support\
**Created:** [November 8, 2022, 2:54pm UTC](https://forum.mautic.org/t/what-is-the-use-case-for-this/25995 "2022-11-08T14:54:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![astrylis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/astrylis/32/6421_2.png) [@astrylis](https://forum.mautic.org/u/astrylis)\
**Post date:** [November 8, 2022, 2:54pm UTC](https://forum.mautic.org/t/what-is-the-use-case-for-this/25995/1 "2022-11-08T14:54:11Z")

</div>

**Your software**  
My Mautic version is: 3.3  
My PHP version is: 7.4  
My Database type and version is: MariaDB v10.5

**Your problem**  
What would be the use case that would cause this? Is this a case where the lead has completed the same form twice?

I would have assumed that Mautic would be aware that they company already exists, and the lead is already associated with that company, so it shouldn’t try to insert into the conpanies\_leads table.

These errors are showing in the log: ```  
mautic.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\UniqueConstraintViolationException:  
"An exception occurred while executing  
‘INSERT INTO  
companies\_leads (date\_added, is\_primary, company\_id, lead\_id)  
VALUES (?, ?, ?, ?)’  
with params [“2022-11-08 14:06:02”, 1, 1624925, “13048722”]:

```auto

Steps I have tried to fix the problem: Possible have an exists check in place is what I am considering doing.
```
