Welcome! Please see the About page for a little more info on how this works.

0 votes
in On-Prem by
edited by

Here is the error message:

cognitect.anomalies/message: "Unable to resolve entity: 1.7592186046217E13 in datom [\"shape_VVVVVVVVVVVVVVVV_0_1\" :shape/source-shape 1.7592186046217E13]"
                           datom: ["shape_VVVVVVVVVVVVVVVV_0_1" :shape/source-shape 1.7592186046217E13]
                        db/error: :db.error/not-an-entity
                             dbs: [{:database-id
                                    "datomic:dev://datomic-transactor:4334/blah",
                                    :t 1818,
                                    :next-t 1819,
                                    :history false}]
                          entity: 1.7592186046217E13

I can query for the :db/id 17592186046217, so I know it exists. My question is why can't Datomic find it? There's only one transaction and it failed, so it is guaranteed that entity 17592186046217 existed before the transaction as well.

This is the schema for :shape/source-shape:

{:db/ident :shape/source-shape
 :db/valueType :db.type/ref  
 :db/cardinality :db.cardinality/one}

The version of Datomic is datomic-pro-1.0.6269.

1 Answer

0 votes
by

Hi Chris,

What is the schema for :shape/source-shape? And can you query it? I am suspect of this being related to the data type and unable to resolve the bigInt. Also what version of Datomic are you using?

(d/q '[:find ?e
         :where [?e :shape/source-shape 1.7592186046217E13]]
       (d/db conn) )
   

Cheers,
Jaret

by
I could query for it as 17592186046217. Did not try 1.7592186046217E13 as you have. This concerns a discarded schema and a tx that is no longer needed, so not so easy for me to re-create this issue. I'll answer your other 2 questions in the body of the question.
...