# Insert issue null record not allowed

**URL:** <https://discourse.hibernate.org/t/insert-issue-null-record-not-allowed/4417>\
**Category:** Hibernate ORM\
**Created:** [July 22, 2020, 7:52pm UTC](https://discourse.hibernate.org/t/insert-issue-null-record-not-allowed/4417 "2020-07-22T19:52:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![agoubar](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@agoubar](https://discourse.hibernate.org/u/agoubar)\
**Post date:** [July 22, 2020, 7:52pm UTC](https://discourse.hibernate.org/t/insert-issue-null-record-not-allowed/4417/1 "2020-07-22T19:52:32Z")

</div>

I kept record in table but removed from java mapping file because other project are pointing to the same table.  
but now the record is null while trying to insert value that is null.  
com.microsoft.sqlserver.jdbc.SQLServerException: Cannot insert the value NULL into column ‘dept\_id’  
Thanks,
