Different UOM for Variants

Is it possible to set different UOM for variants.
Template A - Nos
A1 (Variant of A) - Kg
A2 (Variant of A) - Litre.

It is possible to save the item with a different UOM through a manual entry. But during bulk data import getting an error regarding different UOM.

Anybody, to help?