the insert statement conflicted with the foreign key constraint

hi so basically im trying to comment on a post but it wont allow me what appears is this error.i used the outstagram module to test this.basically if im the original poster the one who posted the content .this error makes it impossible for me to comment.can someone help me here 

Hi Muso,

# The error may be caused by your post table has no ID that is referred by the comment table.



Hi Musa,

"The Insert statement conflicted with the foreign key constraint..." this error comes when you are trying to insert a NULL VALUE in a referenced attribute of an entity. Before you use Create or Update entity action, make an assignment to the referenced attribute by assigning a proper ID to that attribute, then you will not get this error.


thank you a lot both of you .you really helped me