From 59f8d9cfb27aebc7996d660b664eb28c5ef793aa Mon Sep 17 00:00:00 2001 From: georgeDaskalakis Date: Tue, 27 Apr 2021 22:51:40 +0200 Subject: [PATCH] fixes #974 --- src/OSPSuite.Infrastructure.Import/Services/Importer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OSPSuite.Infrastructure.Import/Services/Importer.cs b/src/OSPSuite.Infrastructure.Import/Services/Importer.cs index e8f2b8f13..3c14b88f0 100644 --- a/src/OSPSuite.Infrastructure.Import/Services/Importer.cs +++ b/src/OSPSuite.Infrastructure.Import/Services/Importer.cs @@ -151,7 +151,7 @@ public MappingProblem CheckWhetherAllDataColumnsAreMapped(IReadOnlyList col.IsMandatory && subset.All(cm => cm.MappedColumn.Name != col.Name)).Select(col => col.Name) .ToList(), - MissingUnit = subset.Where(cm => cm.MappedColumn.Unit.SelectedUnit == UnitDescription.InvalidUnit && cm.MappedColumn.ErrorStdDev.Equals("geometric")).Select(cm => cm.MappedColumn.Name) + MissingUnit = subset.Where(cm => cm.MappedColumn.Unit.SelectedUnit == UnitDescription.InvalidUnit && (cm.MappedColumn.ErrorStdDev == null || cm.MappedColumn.ErrorStdDev.Equals(Constants.STD_DEV_ARITHMETIC))).Select(cm => cm.MappedColumn.Name) .ToList() }; }