# Use of bigint attribute value type

**URL:** <https://forum.datomic.com/t/use-of-bigint-attribute-value-type/794>\
**Category:** Datomic Cloud\
**Created:** [January 16, 2019, 9:30am UTC](https://forum.datomic.com/t/use-of-bigint-attribute-value-type/794 "2019-01-16T09:30:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmorice](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/gmorice/32/246_2.png) [@gmorice](https://forum.datomic.com/u/gmorice)\
**Post date:** [January 16, 2019, 9:30am UTC](https://forum.datomic.com/t/use-of-bigint-attribute-value-type/794/1 "2019-01-16T09:30:29Z")

</div>

Hi,

I have created an attribute with a bigint value type in my schema. However when I try to transact a new value I get an exception.

Schema:  
`{:db/ident :smsc/value :db/valueType :db.type/bigint :db/cardinality :db.cardinality/one :db/unique :db.unique/identity}`

Transaction: `(d/transact conn {:tx-data [{:smsc/value 10N}]})`

Exception:  
`{:datomic.client-spi/context-id "cbf046b5-3819-4bb0-8885-b2eabd2c262a", :cognitect.anomalies/category :cognitect.anomalies/incorrect, :cognitect.anomalies/message "Cannot write 10 as tag null", :dbs [{:database-id "a6daa527-aa39-41a6-a137-7bd572a524a0", :t 13, :next-t 14, :history false}]}`

How am I supposed to transact bigint value properly?

Thanks

---

<div class="post-metadata">

**Author:** ![marshall](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/marshall/32/48_2.png) [@marshall](https://forum.datomic.com/u/marshall)\
**Post date:** [January 16, 2019, 4:30pm UTC](https://forum.datomic.com/t/use-of-bigint-attribute-value-type/794/2 "2019-01-16T16:30:58Z")

</div>

What version of Datomic Cloud and what versions of the client API and Clojure are you using?

I was able to transact a bigint without any trouble using your example.

---

<div class="post-metadata">

**Author:** ![marshall](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/marshall/32/48_2.png) [@marshall](https://forum.datomic.com/u/marshall)\
**Post date:** [January 16, 2019, 4:34pm UTC](https://forum.datomic.com/t/use-of-bigint-attribute-value-type/794/3 "2019-01-16T16:34:46Z")

</div>

I apologize for the hasty reply there - I see the same error when using the latest release of Datomic.

I believe we have a fix for this in the works and will update this post when it is released.

---

<div class="post-metadata">

**Author:** ![gmorice](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/gmorice/32/246_2.png) [@gmorice](https://forum.datomic.com/u/gmorice)\
**Post date:** [January 16, 2019, 7:44pm UTC](https://forum.datomic.com/t/use-of-bigint-attribute-value-type/794/4 "2019-01-16T19:44:00Z")

</div>

Yes, indeed I am running the latest release of Datomic Cloud.

Thanks for the quick answer

---

<div class="post-metadata">

**Author:** ![Device](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@Device](https://forum.datomic.com/u/Device)\
**Post date:** [January 17, 2019, 3:20am UTC](https://forum.datomic.com/t/use-of-bigint-attribute-value-type/794/5 "2019-01-17T03:20:01Z")

</div>

Scary, stuff like this is what stops me from using datomic in production and just use it for hobby things.

---

<div class="post-metadata">

**Author:** ![marshall](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/marshall/32/48_2.png) [@marshall](https://forum.datomic.com/u/marshall)\
**Post date:** [February 22, 2019, 6:06pm UTC](https://forum.datomic.com/t/use-of-bigint-attribute-value-type/794/6 "2019-02-22T18:06:52Z")

</div>

The latest release of Datomic Cloud includes a fix for this issue:

> [@Datomic Cloud version 470-8654](https://forum.datomic.com/t/datomic-cloud-version-470-8654/854):
>
> This message covers changes in this release. For more details, see [https://docs.datomic.com/cloud/releases.html](https://docs.datomic.com/cloud/releases.html) 02/22/2019 - 470-8654 - Compute Template Update The 470-8654 release contains fixes, enhancements, and dependency updates: Fix: Production nodes now use the [documented -Xss values](https://docs.datomic.com/cloud/ions/ions-reference.html#jvm-settings) for starting the JVM, preventing stack overflow when compiling complex ion applications. Fix: Fixed bug where ion connections could fail to become aware of recent transactions in a timely manner. Fix: Al…
