That is exactly what must happen. If there are no rows in the parent table, the foreign key cannot be enabled if there are values in the child column. You must populate the parent table first, THEN try to enable the FK constraint.