Query Entity rule is returning type() cdt when the result is Null for single type cdt.

I have observed that when query entity rule returning "no data" is mapped to single type of CDT then that cdt stores typed cdt rather than null. This is causing write to data store entity to insert a null row in the table because the null check is failing for this cdt.

Note: All The fields in my cdt can store null except the primary key field. How can i handlle this type of situation?

  Discussion posts and replies are publicly visible