I am in how to create and use action logic tutorial in reactive. I followed all the steps on the video but when I was trying to create new order, this error appears
can someone please help me?
In the OrderCreateOrUpdate server action you are assigning the GetUserId() function result to the CreatedBy property. CreatedBy is a foreign key to the Employee identifier. Now you the logged in user (getUserId()) does not have a corresponding Employee record (which is an extension to the User entity) you will get the above error. you have to make sure that either the Employee record exists for the current user OR check if the employee record exists and if not create it in the OrderCreateOrUpdate server action.
Best
Stefan
Hi ,
Mikhel Dela Cruz
You Take A reference of created by in another table but logic you pass getuserid() .
I solve your problem and attached Oml Please Check
Thankyou
Hi Mikhel Dela Cruz,
Please check this link.
https://www.outsystems.com/forums/discussion/36191/the-insert-statement-conflicted-with-the-foreign-key-constraint/
Thanks,
Ramesh