Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] Debugging foreign key issue

$
0
0
Hi Yokho,

The only way to get to the actual INSERT statement is to use tooling of the database. However, you shouldn't need to do that in this case.

As you can see from the error message, there's a foreign key constraint conflict. This means that you try to INSERT a record (i.e. create a new one) that has an identifier of another table as one of its attributes, but that attribute is not filled correctly (i.e. either empty but it's mandatory, or filled with a value that does not exist in the referenced table).

Judging from the error message, you are trying to Create an OrderItem, but the mandatory OrderId is not filled correctly. You probably left it empty?

Viewing all articles
Browse latest Browse all 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>