Ref fields stops to be saved

Hello All, hope you doing well.

I have a visits table and a products_per_visit table.

Suddenly the REF field visits[id] in the table products_per_visit stopped to be saved. I have tried many things to get it back working like regenerate structure, try to hide and show the field but no success.

Any ideas on how to address this?


Please contact for help with this.