# Exception on nullable foreign key

**URL:** <https://forum.radzen.com/t/exception-on-nullable-foreign-key/157>\
**Category:** Angular\
**Created:** [November 16, 2017, 12:44pm UTC](https://forum.radzen.com/t/exception-on-nullable-foreign-key/157 "2017-11-16T12:44:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bartnetjs](https://forum.radzen.com/user_avatar/forum.radzen.com/bartnetjs/32/50_2.png) [@bartnetjs](https://forum.radzen.com/u/bartnetjs)\
**Post date:** [November 16, 2017, 12:44pm UTC](https://forum.radzen.com/t/exception-on-nullable-foreign-key/157/1 "2017-11-16T12:44:06Z")

</div>

I have in MSSQL a nullable foreign key in a table  
In radzen console i got the following exception:

> Microsoft.OData.ODataException: The property 'CategoryID[Nullable=False]' of type 'Edm.Int32' has a null value, which is not allowed

The 'categoryID' is defined as nullable in mssql

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [November 16, 2017, 3:57pm UTC](https://forum.radzen.com/t/exception-on-nullable-foreign-key/157/2 "2017-11-16T15:57:18Z")

</div>

Hi Bart,

We will do our best to provide fix for this soon!  
Thank you very much for the report!

Best Regards,  
Vladimir

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [November 17, 2017, 6:35am UTC](https://forum.radzen.com/t/exception-on-nullable-foreign-key/157/3 "2017-11-17T06:35:57Z")

</div>

Hi Bart,

Unfortunately we were unable to replicate the exception. Do you get this during read or update/delete? Can you send us (at [info@radzen.com](mailto:info@radzen.com)) your SQL schema (create script for schema only) to test locally what’s going on?

Thank you in advance!

Best Regards,  
Vladimir

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [November 17, 2017, 2:01pm UTC](https://forum.radzen.com/t/exception-on-nullable-foreign-key/157/4 "2017-11-17T14:01:22Z")

</div>

Hi Bart,

We’ve fixed the problem and the fix will be part of our next release and the internal build related to [this thread](http://forum.radzen.com/t/https-mode-issues/156/6).

Best Regards,  
Vladimir
