Hello,
Currently validation of fields of type ‘Select’ is skipped in Data Import.
I wrote below lines in validate method of my Doc Type to enforce validations for Select and it worked for me.
if frappe.flags.in_import:
in_imp = frappe.flags.in_import
try:
frappe.flags.in_import = False
self._validate_selects()
finally:
frappe.flags.in_import = in_imp
Just in case if that helps someone…
Thanks,
Vamyip