Why do I get - "not-null property references a null or transient value" error?

The first save does Ok, and the ID is created. So I dont understand why does it says that the ID is null in the second save.

 

the ID has been created in the first table, as you can see here  

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    in your table structure, there is a column which should not accept null values and you are trying to pass the null values, that;s why you got the issue. As a suggestion, add primary key as a auto generated. hope it will solve the problem if this is for primary key column, if it is for other column you have to check into table structure. Please check the candidate skills CDT primary key

Reply
  • 0
    Certified Senior Developer

    in your table structure, there is a column which should not accept null values and you are trying to pass the null values, that;s why you got the issue. As a suggestion, add primary key as a auto generated. hope it will solve the problem if this is for primary key column, if it is for other column you have to check into table structure. Please check the candidate skills CDT primary key

Children