Error Log - Please help me explain this error

Hi Community,


I was uploading a file through my form,this error appears after i finishing uploading.

Can someone kindly explain to me what does this error means?


Best Regards,

Wen Kai

Hi,

It means you have a foreign key attribute for which the value isn't set correctly.O

Onlyattributes where the Delete Rule property is set to Protected or Delete create a Foreign key database constraint. These constraints, prefixed as OSFRK.

For more information read 

https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Data/Database_Reference/Database_Constraints

Regards,

Daniel


Daniël Kuhlmann wrote:

Hi,

It means you have a foreign key attribute for which the value isn't set correctly.O

Onlyattributes where the Delete Rule property is set to Protected or Delete create a Foreign key database constraint. These constraints, prefixed as OSFRK.

For more information read 

https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Data/Database_Reference/Database_Constraints

Regards,

Daniel


Hi Daniël Kuhlmann,


Thanks for explaining.

May i know the error is projectformid is set wrongly?

Or another field is set wrongly?

I not sure how to read the error

Thank you.


Best Regards,

Wen Kai



Solution

I did not see your code, but in general you probably have an attribute in your entity which is a foreign key with Delete or Protect deleterule. The value needs to be a valid Id of the entity to which it refers.

So lets say you have an Order entity and an OrderLine entity. In the OrderLine entity you have an attribute OrderId acting as foreign key to the Order entity. The OrderId in OrderLine is only considered to be valid if there is a record in the Order entity with that Id.

Solution