diff --git a/rabbit-core/src/main/java/org/ohdsi/rabbitInAHat/dataModel/Database.java b/rabbit-core/src/main/java/org/ohdsi/rabbitInAHat/dataModel/Database.java index 486dae64..887262c7 100644 --- a/rabbit-core/src/main/java/org/ohdsi/rabbitInAHat/dataModel/Database.java +++ b/rabbit-core/src/main/java/org/ohdsi/rabbitInAHat/dataModel/Database.java @@ -260,7 +260,7 @@ private static ValueCounts getValueCounts(QuickAndDirtyXlsxReader workbook, Stri // If the count is not a number, ignore this row try { - valueCounts.add(value, Integer.parseInt(count)); + valueCounts.add(value, (int) Double.parseDouble(count)); } catch (NumberFormatException e) { // Skip if count could not be parsed. In most cases this is for empty count at 'List Truncated...' }