Show error message when an optional field data type is a primitive data type