Error on lines xxx: Error updating database - record not found

Not the picture above. Am not sure if that error is a bug or not.

all fields in the pic are foreign keys (lookups). when i edit a record i get the error:
Error on lines -1: Error updating database - record not found

even when i turn on debug option i cant see the SQL THAT CAUSES THE ERROR So there’s no way for me to troubleshoot it.

any help & ideas are welcome

error record not found.png