Custom field update error

Hello nitai, Razuna treturns to me a database error whose that I have shown below while I am updating a cutsom field.

{“message”:“General SQL Error”,“errorcode”:“errorCode.sqlError”,“detail”:“Database reported: Cannot add or update a child row: a foreign key constraint fails (razuna.raz1_custom_fields_values, CONSTRAINT raz1_custom_fields_values_ibfk_1 FOREIGN KEY (cf_id_r) REFERENCES raz1_custom_fields (cf_id) ON DELETE CASCADE)”}

What am I doing wrong?