[Outstagram] the insert statement conflicted with the foreign key constraint

[Outstagram] the insert statement conflicted with the foreign key constraint

  
Forge Component
(0)
Published on 2017-06-28 by darwinLabs Dev Team
0 votes
Published on 2017-06-28 by darwinLabs Dev Team

when i post i cant like my own post nor comment on it ...this error pops out ...Assume "StatusLike" is "PostLike" 

Hi Musgado,

That error means that the table you are inserting data into has a foreign key relationship with another table. Before data can be inserted, the value in the foreign key field must exist in the other table first.

Cheers,

Rocky

Hi Musgado,

"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.