# False negative on :db.entity/attrs

**URL:** https://forum.datomic.com/t/false-negative-on-db-entity-attrs/1814
**Category:** General
**Created:** [April 3, 2021, 5:04pm UTC](https://forum.datomic.com/t/false-negative-on-db-entity-attrs/1814 "2021-04-03T17:04:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hden](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/hden/32/388_2.png) [@hden](https://forum.datomic.com/u/hden)
#### Post date: [April 3, 2021, 5:04pm UTC](https://forum.datomic.com/t/false-negative-on-db-entity-attrs/1814/1 "2021-04-03T17:04:35Z")

</div>

Schema

```
[{:db/ident :foo/bar
  :db/valueType :db.type/boolean
  :db/cardinality :db.cardinality/one}
 {:db/ident :foo/guard
  :db.entity/attrs [:foo/bar]}]

```

We can validate the required attribute by requesting the entity spec

```
{:foo/bar true
 :db/ensure :foo/guard}

```

However the boolean value `false` is interpreted as missing schema

```
{:foo/bar false
 :db/ensure :foo/guard}

```

Error:

> Execution error (ExceptionInfo) at datomic.core.error/raise (error.clj:55).  
> :db.error/entity-attr Entity -9223301668109579638 missing attributes (:foo/bar) of spec :foo/guard

Environment:

- dev-local 0.9.232

---

<div class="post-metadata">

### Author: ![jaret](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/jaret/32/45_2.png) [@jaret](https://forum.datomic.com/u/jaret)
#### Post date: [April 26, 2021, 2:29pm UTC](https://forum.datomic.com/t/false-negative-on-db-entity-attrs/1814/2 "2021-04-26T14:29:30Z")

</div>

Hi @hden

We have reproduced this behavior and will release a fix in an upcoming release. I’ll circle back when it’s available. Thank you for the report!

---

<div class="post-metadata">

### Author: ![jaret](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/jaret/32/45_2.png) [@jaret](https://forum.datomic.com/u/jaret)
#### Post date: [September 20, 2023, 12:45pm UTC](https://forum.datomic.com/t/false-negative-on-db-entity-attrs/1814/3 "2023-09-20T12:45:21Z")

</div>

I realized today when auditing older stories that I never circled back to update that we released a fix for this issue on 7/13/2021 with [Local Dev and CI with Datomic Local | Datomic](https://docs.datomic.com/cloud/datomic-local.html#235).

Updated here in case someone is searching this issue out.
