Execution error (Exceptions$IllegalArgumentExceptionInfo) at datomic.error/arg (error.clj:79).
:db.error/past-tx-instant Time conflict: Fri Sep 21 21:40:33 WEST 2018 is older than database basis
But the funny part is that even though I managed to transact my data by converting to Date, the minimal example above still breaks — and I don’t see why.
Datomic will allow you to transact historical data by overriding the :db/txInstant on the transaction. However, it will allow this only as long as each new datom is later than :db/txInstant on the last datom transacted. If you don’t do that, you’ll get this error. So take a look at the very last tx you’ve transacted, and you’ll be locked out of transacting anything before that time.
Thanks, I’m quite aware of that. If you take a look at the code example you can see, that all txInstants are sorted chronologically, and the error still persists.