Raise valid error on data masking