# Campaings actions not working

**URL:** <https://forum.mautic.org/t/campaings-actions-not-working/33073>\
**Category:** Product Support\
**Created:** [August 9, 2024, 4:40pm UTC](https://forum.mautic.org/t/campaings-actions-not-working/33073 "2024-08-09T16:40:20Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![zero477](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zero477/32/10873_2.png) [@zero477](https://forum.mautic.org/u/zero477)\
**Post date:** [August 9, 2024, 4:40pm UTC](https://forum.mautic.org/t/campaings-actions-not-working/33073/1 "2024-08-09T16:40:20Z")

</div>

**Your software**  
My Mautic version is: v4.4.10  
My PHP version is: 8.0.30  
My Database type and version is: 10.5.25-MariaDB-deb11-log

**Your problem**  
My problem is: Campaign not executing events

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/2/27c006805a7c8f117fb8bc5d6444d11f426e0e1b.png)

These errors are showing in the log:

Triggering events for campaign 74  
Triggering events for newly added contacts  
76 total events(s) to be processed in batches of 100 contacts  
0/76 [\>---------------------------] 0%  
76/76 [============================] 100%Triggering events for campaign 75  
Triggering events for newly added contacts  
24051 total events(s) to be processed in batches of 100 contacts  
0/24051 [\>---------------------------] 0%  
24051/24051 [============================] 100%Triggering events for campaign 76  
Triggering events for newly added contacts  
5260 total events(s) to be processed in batches of 100 contacts  
0/5260 [\>---------------------------] 0%  
5260/5260 [============================] 100%

Steps I have tried to fix the problem:

Hello,

I am trying to do campaigns to clean my lead contacts.  
I noticed that I have had many registrations from weird countries.

So I set up a segment to put all those leads in.

Then I did a campaign that is intended to delete them.

I have been playing with cron jobs to see if the problem is there without success. The crons are set using this guide: [Ultimate guide to Mautic cronjobs – Joey Keller](https://joeykeller.com/ultimate-guide-to-mautic-cronjobs/) (thanks Joey).

Any ideas? Other campaigns are working normally. My guess is that it has something to do with the Delete command.

Greetings,  
Eddie

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [August 10, 2024, 4:50pm UTC](https://forum.mautic.org/t/campaings-actions-not-working/33073/2 "2024-08-10T16:50:58Z")

</div>

You have a deletion command there?  
It is being executed in my opinion.  
Just after you delete someone they disappear from the system including the event of deletion.  
Could that be the issue?

---

<div class="post-metadata">

**Author:** ![zero477](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zero477/32/10873_2.png) [@zero477](https://forum.mautic.org/u/zero477)\
**Post date:** [August 11, 2024, 8:43am UTC](https://forum.mautic.org/t/campaings-actions-not-working/33073/3 "2024-08-11T08:43:44Z")

</div>

Hello @joeyk !!

Thank you for your reply. I thought that too, but no because when I clic on contacts I see them.

Then I can go and open the contact and delete it.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/4/4c14aa64936180b56d170f0cf1af6c7dbc3d1e52.png)

The campaign is quite simple:

![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/7/7b73395d9c3336e8bf4a508b64cc5c505b036241.png)

I will redo the campaign, and then instead of DELETE I will tag them and see if that Action happens.

It is also strange. Can contacts restart the campaign? I would say no, because they cannot be deleted twice.

I have algo the doubt. Is all the info related to the contact deleted?

---

<div class="post-metadata">

**Author:** ![zero477](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zero477/32/10873_2.png) [@zero477](https://forum.mautic.org/u/zero477)\
**Post date:** [August 11, 2024, 8:50am UTC](https://forum.mautic.org/t/campaings-actions-not-working/33073/4 "2024-08-11T08:50:38Z")

</div>

My new campaign first puts a TAG on the contact 30 minutes after the contact is added to the campaign and 30 minutes after it deletes the contact.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/05ac7495e49378b01dc6d7eeed3aa17db3f0d757.png)

Let’s see if it works like this.

---

<div class="post-metadata">

**Author:** ![zero477](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zero477/32/10873_2.png) [@zero477](https://forum.mautic.org/u/zero477)\
**Post date:** [August 11, 2024, 9:45am UTC](https://forum.mautic.org/t/campaings-actions-not-working/33073/5 "2024-08-11T09:45:24Z")

</div>

Hello!

What I suspected is true!! There is a problem with DELETEing contacts through campaigns. The tagging is executed but not the deletion of the contacts.

Any ideas? I have no idea of how to deggug this.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/f/f11f157b8e4b033d470d319b1ccce62e447d7bf4.png)

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [August 11, 2024, 11:02am UTC](https://forum.mautic.org/t/campaings-actions-not-working/33073/6 "2024-08-11T11:02:23Z")

</div>

Do you have multiple users with different roles?

---

<div class="post-metadata">

**Author:** ![zero477](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zero477/32/10873_2.png) [@zero477](https://forum.mautic.org/u/zero477)\
**Post date:** [August 11, 2024, 12:27pm UTC](https://forum.mautic.org/t/campaings-actions-not-working/33073/7 "2024-08-11T12:27:25Z")

</div>

Yes @joeyk ! I do have many roles. How can this be affecting it? I log in as an admin.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [August 11, 2024, 3:30pm UTC](https://forum.mautic.org/t/campaings-actions-not-working/33073/8 "2024-08-11T15:30:38Z")

</div>

Not sure just trying to figure it out.  
Does the campaign belong to admin?

---

<div class="post-metadata">

**Author:** ![zero477](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zero477/32/10873_2.png) [@zero477](https://forum.mautic.org/u/zero477)\
**Post date:** [August 11, 2024, 3:43pm UTC](https://forum.mautic.org/t/campaings-actions-not-working/33073/9 "2024-08-11T15:43:02Z")

</div>

Hey @joeyk!

Thank you for all your help!

It should because I created it as an admin. I see my name in the log of the campaign.

I ran some of the commands here. Is it possible that those have anything to do?

> <https://gist.github.com/sebastian-fahrenkrog/0d53ced6a50ed680383f4680c6398635>

I do not understand either. I am trying to set up various workflows to clean Mautic.

---

<div class="post-metadata">

**Author:** ![zero477](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zero477/32/10873_2.png) [@zero477](https://forum.mautic.org/u/zero477)\
**Post date:** [August 12, 2024, 8:21am UTC](https://forum.mautic.org/t/campaings-actions-not-working/33073/10 "2024-08-12T08:21:16Z")

</div>

Table campaign\_lead\_event\_failed\_log shows Contact removed from campaign on August 11, 2024 3:36 am CST

---

<div class="post-metadata">

**Author:** ![zero477](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zero477/32/10873_2.png) [@zero477](https://forum.mautic.org/u/zero477)\
**Post date:** [August 12, 2024, 8:27am UTC](https://forum.mautic.org/t/campaings-actions-not-working/33073/11 "2024-08-12T08:27:31Z")

</div>

Hello!! It might have worked. The campaign shows no data now …

It is strange … Because the contacts have been deleted the campaign shows no stats? Is that possible? There is no info on the contact tab either.

Yesturday the ACTION “Tag Paises extraños” was completed with around 5,000 contacts. Now there is nothing.

I would expect the campaign to show how many contacts have been deleted. But it seems it does now work like that.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/b/bee38babdc590f312db55e6c1190e6546f8a4ce6.png)

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [August 12, 2024, 9:05am UTC](https://forum.mautic.org/t/campaings-actions-not-working/33073/12 "2024-08-12T09:05:22Z")

</div>

Great 🙂 Good job.
