# java.lang.IllegalArgumentException: Already registered a copy: SqmBasicValuedSimplePath

**URL:** <https://discourse.hibernate.org/t/java-lang-illegalargumentexception-already-registered-a-copy-sqmbasicvaluedsimplepath/8485>\
**Category:** Hibernate ORM\
**Created:** [November 1, 2023, 8:32pm UTC](https://discourse.hibernate.org/t/java-lang-illegalargumentexception-already-registered-a-copy-sqmbasicvaluedsimplepath/8485 "2023-11-01T20:32:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![beikov](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/beikov/32/258_2.png) [@beikov](https://discourse.hibernate.org/u/beikov)\
**Post date:** [November 2, 2023, 10:17am UTC](https://discourse.hibernate.org/t/java-lang-illegalargumentexception-already-registered-a-copy-sqmbasicvaluedsimplepath/8485/2 "2023-11-02T10:17:00Z")

</div>

Please consider using our search box in the forum. This question was asked multiple times already and has plenty of answers:

- [Hibernate 6.1.6: Using jakarta criteria and count query, getting exception in count query execution if count query contains where predicate](https://discourse.hibernate.org/t/hibernate-6-1-6-using-jakarta-criteria-and-count-query-getting-exception-in-count-query-execution-if-count-query-contains-where-predicate/7455)
- [Getting Total Count Using Criteria Query](https://discourse.hibernate.org/t/getting-total-count-using-criteria-query/5801)
- [Possible regression 5.6 to 6.1 - [SqmRoot not yet resolved to TableGroup]](https://discourse.hibernate.org/t/possible-regression-5-6-to-6-1-sqmroot-not-yet-resolved-to-tablegroup/6554)

---

_[View the full topic](https://discourse.hibernate.org/t/java-lang-illegalargumentexception-already-registered-a-copy-sqmbasicvaluedsimplepath/8485)._
