# SessionFactory configured for multi-tenancy, but no tenant identifier specified

**URL:** <https://discourse.hibernate.org/t/sessionfactory-configured-for-multi-tenancy-but-no-tenant-identifier-specified/978>\
**Category:** Hibernate ORM\
**Created:** [June 28, 2018, 6:23am UTC](https://discourse.hibernate.org/t/sessionfactory-configured-for-multi-tenancy-but-no-tenant-identifier-specified/978 "2018-06-28T06:23:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prahlad\_gupta](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@prahlad\_gupta](https://discourse.hibernate.org/u/prahlad_gupta)\
**Post date:** [June 28, 2018, 6:23am UTC](https://discourse.hibernate.org/t/sessionfactory-configured-for-multi-tenancy-but-no-tenant-identifier-specified/978/1 "2018-06-28T06:23:46Z")

</div>

Hi,  
Initially the minPoolSize was 5 and then i reduced to 3 .After the modification I got an error  
“org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.HibernateException: SessionFactory configured for multi-tenancy, but no tenant identifier specified”  
I am not able to understand how minpool size can impact this.  
Need Help.  
P.S : I am beginner and need help from community . I didnt find related article in google.

---

<div class="post-metadata">

**Author:** ![vlad](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/vlad/32/658_2.png) [@vlad](https://discourse.hibernate.org/u/vlad)\
**Post date:** [June 28, 2018, 9:05am UTC](https://discourse.hibernate.org/t/sessionfactory-configured-for-multi-tenancy-but-no-tenant-identifier-specified/978/2 "2018-06-28T09:05:38Z")

</div>

Of course, it’s not related. Just debug it and check if the tenant identifier is properly set.

Most likely it’s a Spring configuration issue.
