# Error when importing lead

**URL:** <https://forum.mautic.org/t/error-when-importing-lead/2945>\
**Category:** Product Support\
**Created:** [December 10, 2015, 2:38am UTC](https://forum.mautic.org/t/error-when-importing-lead/2945 "2015-12-10T02:38:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![noreply](https://avatars.discourse-cdn.com/v4/letter/n/df705f/32.png) [@noreply](https://forum.mautic.org/u/noreply)\
**Post date:** [December 10, 2015, 2:38am UTC](https://forum.mautic.org/t/error-when-importing-lead/2945/1 "2015-12-10T02:38:10Z")

</div>

Hi,  
  
  
  
I had faced the below error when importing leads via uploading a CSV file. The file contains 400 leads. Can you let me know why and how to fix it?  
  
  
  
A new entity was found through the relationship ‘MauticLeadBundleEntityLeadList#leads’ that was not configured to cascade persist operations for entity: MauticLeadBundleEntityListLead@0000000078339f4000000000c92c3213. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(…,cascade={“persist”}). If you cannot find out which entity causes the problem implement ‘MauticLeadBundleEntityListLead#\_\_toString()’ to get a clue.  
  
  
  
Thanks.

---

<div class="post-metadata">

**Author:** ![noreply](https://avatars.discourse-cdn.com/v4/letter/n/df705f/32.png) [@noreply](https://forum.mautic.org/u/noreply)\
**Post date:** [December 10, 2015, 2:38am UTC](https://forum.mautic.org/t/error-when-importing-lead/2945/2 "2015-12-10T02:38:10Z")

</div>

Hi,

I had faced the below error when importing leads via uploading a CSV file. The file contains 400 leads. Can you let me know why and how to fix it?

A new entity was found through the relationship ‘MauticLeadBundleEntityLeadList#leads’ that was not configured to cascade persist operations for entity: MauticLeadBundleEntityListLead@0000000078339f4000000000c92c3213. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(…,cascade={“persist”}). If you cannot find out which entity causes the problem implement ‘MauticLeadBundleEntityListLead#\_\_toString()’ to get a clue.

Thanks.

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [December 10, 2015, 10:22am UTC](https://forum.mautic.org/t/error-when-importing-lead/2945/3 "2015-12-10T10:22:13Z")

</div>

There are 3 PRs solving this error right now:

[https://github.com/mautic/mautic/pulls?utf8=✓&q=is%3Apr+is%3Aopen+lead+persist+](https://github.com/mautic/mautic/pulls?utf8=%E2%9C%93&q=is%3Apr+is%3Aopen+lead+persist+)

You can test them and comment if it worked for you or not.

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:56pm UTC](https://forum.mautic.org/t/error-when-importing-lead/2945/4 "2020-02-02T22:56:43Z")

</div>


