# How work command mautic:segments:update after some contact modify

**URL:** <https://forum.mautic.org/t/how-work-command-mauticupdate-after-some-contact-modify/17870>\
**Category:** Product Support\
**Tags:** mautic-3\
**Created:** [January 21, 2021, 10:00am UTC](https://forum.mautic.org/t/how-work-command-mauticupdate-after-some-contact-modify/17870 "2021-01-21T10:00:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![masterale](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/masterale/32/433_2.png) [@masterale](https://forum.mautic.org/u/masterale)\
**Post date:** [January 21, 2021, 10:00am UTC](https://forum.mautic.org/t/how-work-command-mauticupdate-after-some-contact-modify/17870/1 "2021-01-21T10:00:27Z")

</div>

**Your software**  
My Mautic version is:3.1.0  
My PHP version is:7.2.24  
My Database type and version is:MariaDB 10.4.14

**Your problem**  
My problem is:  
I create 1 segment, with some filters. After this i lunched command mautic:segments:update. Command work and i see contacts on segment.  
Then i changed 1 field manually on 1 contact.  
In my segment i add 1 other filter to eliminate this one contact. On console lunched command mautic:segments:update, but on segment this contact already exist. No errors on filter.

These errors are showing in the log:no errors

Steps I have tried to fix the problem:No fix tried

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [January 21, 2021, 10:27am UTC](https://forum.mautic.org/t/how-work-command-mauticupdate-after-some-contact-modify/17870/2 "2021-01-21T10:27:24Z")

</div>

Hi @masterale It would be much easier to help if you paste some screenshots of the filters and give examples of what you have changed.

---

<div class="post-metadata">

**Author:** ![masterale](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/masterale/32/433_2.png) [@masterale](https://forum.mautic.org/u/masterale)\
**Post date:** [January 21, 2021, 1:43pm UTC](https://forum.mautic.org/t/how-work-command-mauticupdate-after-some-contact-modify/17870/3 "2021-01-21T13:43:00Z")

</div>

Hi,  
all filter used are around new field created by me, arent the base field of database.  
If you want i send you filters, but i dont know if need.  
Other info : i launch all command from cli, dont use cron, so i see on real-time if run.

---

<div class="post-metadata">

**Author:** ![masterale](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/masterale/32/433_2.png) [@masterale](https://forum.mautic.org/u/masterale)\
**Post date:** [January 25, 2021, 12:13pm UTC](https://forum.mautic.org/t/how-work-command-mauticupdate-after-some-contact-modify/17870/4 "2021-01-25T12:13:19Z")

</div>

Hi,  
this are 2 scheenshots, 1 with contact field, 1 with filters.  
What i want is only that filer work. I have only 1 contact with the field on screen 1 witn **no**.  
But the contact isnt filtered on segment.  
I have also deleted and created the segment another time, to try solutions, because i have added filter on field “Privacy Accetta Comunicazioni” after segment creation, but nothing, dont work.

So the question is : Why if i change value on field’s on Contact (field changed are on filter), and then use this command “ **mautic:segments:update** ” _number of contact inside segment dont change_ ?

Bye

**Immagine 1**

 ![immagine](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/3/3848bc3cb43a49411e26d5d6b55756d40d8ed370.png)

**Immagine 2**

 ![immagine](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/9/9ae949b3c4671aa1cc989054104eaa7b459e1b30.png)

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [January 26, 2021, 9:13am UTC](https://forum.mautic.org/t/how-work-command-mauticupdate-after-some-contact-modify/17870/5 "2021-01-26T09:13:25Z")

</div>

Hi @masterale

From what I can see and understand is that in the first image (the contact card), the contact does not have all the values required by segment.

Your filter is saying ONLY pull in contacts that have  
Lead Evento 2 = (what you have written there)  
AND  
Client Categoria = Agenza Italia  
AND  
Privacy = Ci

So the contact you have chosen does not have these criteria met.
