# Problem executing campaign

**URL:** <https://forum.mautic.org/t/problem-executing-campaign/2448>\
**Category:** Product Support\
**Created:** [October 1, 2015, 2:17pm UTC](https://forum.mautic.org/t/problem-executing-campaign/2448 "2015-10-01T14:17:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![edudesouza](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/edudesouza/32/5898_2.png) [@edudesouza](https://forum.mautic.org/u/edudesouza)\
**Post date:** [October 1, 2015, 2:17pm UTC](https://forum.mautic.org/t/problem-executing-campaign/2448/1 "2015-10-01T14:17:00Z")

</div>

Hi there, do some one knows whats this message is about?  
  
  
  
Triggering events for campaign 1  
  
Triggering first level events  
  
9 total events(s) to be processed in batches of 100  
  
  
  
[DoctrineORMORMException]  
  
  
  
Entity of type MauticCampaignBundleEntityLeadEventLog has identity through a foreign entity MauticLeadBundleEntityLead, however this entity has no identity itself. You have to call EntityManager#persist() on the related entity and make sure that an identifier was generated before trying to persist ‘MauticCampaignBundleEntityLeadEventLog’. In case of Post Insert ID Generation (such as MySQL Auto-Increment or PostgreSQL SERIAL) this means you have to call EntityManager#flush() between both persist operations.  
  
  
  
mautic:campaigns:trigger [-i|–campaign-id[="…"]] [-l|–batch-limit[="…"]] [-m|–max-events[="…"]] [-f|–force]

---

<div class="post-metadata">

**Author:** ![edudesouza](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/edudesouza/32/5898_2.png) [@edudesouza](https://forum.mautic.org/u/edudesouza)\
**Post date:** [October 1, 2015, 2:17pm UTC](https://forum.mautic.org/t/problem-executing-campaign/2448/2 "2015-10-01T14:17:00Z")

</div>

Hi there, do some one knows whats this message is about?

Triggering events for campaign 1  
Triggering first level events  
9 total events(s) to be processed in batches of 100

[DoctrineORMORMException]

Entity of type MauticCampaignBundleEntityLeadEventLog has identity through a foreign entity MauticLeadBundleEntityLead, however this entity has no identity itself. You have to call EntityManager#persist() on the related entity and make sure that an identifier was generated before trying to persist ‘MauticCampaignBundleEntityLeadEventLog’. In case of Post Insert ID Generation (such as MySQL Auto-Increment or PostgreSQL SERIAL) this means you have to call EntityManager#flush() between both persist operations.

mautic:campaigns:trigger [-i|–campaign-id[="…"]] [–scheduled-only] [–negative-only] [-l|–batch-limit[="…"]] [-m|–max-events[="…"]] [-f|–force]

---

<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:** [October 1, 2015, 3:26pm UTC](https://forum.mautic.org/t/problem-executing-campaign/2448/3 "2015-10-01T15:26:50Z")

</div>

This problem was reported and is discussed at

[https://github.com/mautic/mautic/issues/938](https://github.com/mautic/mautic/issues/938)

Please, make a comment there if you have a attachment as others thinks it might cause the problem.

---

<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:58pm UTC](https://forum.mautic.org/t/problem-executing-campaign/2448/4 "2020-02-02T22:58:12Z")

</div>


