# Can't create segment on a boolean attribute

**URL:** <https://community.forestadmin.com/t/cant-create-segment-on-a-boolean-attribute/699>\
**Category:** Help me!\
**Created:** [July 21, 2020, 4:13pm UTC](https://community.forestadmin.com/t/cant-create-segment-on-a-boolean-attribute/699 "2020-07-21T16:13:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![julien](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/julien/32/322_2.png) [@julien](https://community.forestadmin.com/u/julien)\
**Post date:** [July 21, 2020, 4:13pm UTC](https://community.forestadmin.com/t/cant-create-segment-on-a-boolean-attribute/699/1 "2020-07-21T16:13:15Z")

</div>

We’ve been having errors the last couple of hours. Around 2 hours ago, we created a simple segment on a boolean field: `field is true`. It worked perfectly.

Now, we wanted to do it on another environment, same field, same operator, same value, but we can’t save anymore:

## Failure Logs

```javascript
"Invalid patch value (path: "/collections/df7ea340-a6a3-11ea-a761-91c9e51c1359/layout/segments/-", op: "add", value: {"id":"c6d52210-cb6a-11ea-a606-ebede3204723","type":"manual","name":"Early adopters","position":0,"isVisible":false,"defaultSortingFieldName":null,"defaultSortingFieldOrder":null,"hasColumnsConfiguration":false,"columns":[],"query":null,"filter":{"id":"c6d4fb00-cb6a-11ea-a606-ebede3204723","type":"and","conditions":[{"id":"c6d4fb01-cb6a-11ea-a606-ebede3204723","fieldName":"isEarlyAdopter","operator":"is","value":true,"embeddedField":null,"subFieldName":null}]}}): ValidationError: child "filter" fails because [child "conditions" fails because ["conditions" at position 0 fails because [child "value" fails because ["value" must be a string, "value" must be a number]]]]"

```

## Context

We have a custom backend but it doesn’t seem related.

---

<div class="post-metadata">

**Author:** ![anon37102731](https://avatars.discourse-cdn.com/v4/letter/a/c6cbf5/32.png) [@anon37102731](https://community.forestadmin.com/u/anon37102731)\
**Post date:** [July 21, 2020, 4:41pm UTC](https://community.forestadmin.com/t/cant-create-segment-on-a-boolean-attribute/699/2 "2020-07-21T16:41:34Z")

</div>

Hi @julien,

Thank you for reporting this issue!

We’ve been able to reproduce and we’ll ship a fix ASAP.

---

<div class="post-metadata">

**Author:** ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)\
**Post date:** [July 22, 2020, 7:24am UTC](https://community.forestadmin.com/t/cant-create-segment-on-a-boolean-attribute/699/3 "2020-07-22T07:24:04Z")

</div>

Hello @julien,

The fix has been released.  
Could you please try again to create your segment?

Thanks!

---

<div class="post-metadata">

**Author:** ![julien](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/julien/32/322_2.png) [@julien](https://community.forestadmin.com/u/julien)\
**Post date:** [July 22, 2020, 7:54am UTC](https://community.forestadmin.com/t/cant-create-segment-on-a-boolean-attribute/699/4 "2020-07-22T07:54:26Z")

</div>

@anon34731316 It works! Thanks!
