Skip to content

Commit b6245d3

Browse files
committed
Read laboratory reports from the database as well
1 parent 301768b commit b6245d3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Studies/src/org/labkey/studies/StudiesServiceImpl.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,12 @@ public void loadTsv(Resource tsv, String schemaName, User u, Container c)
120120
qus.setBulkLoad(true);
121121

122122
qus.truncateRows(u, c, null, null);
123-
qus.insertRows(u, c, rows, new BatchValidationException(), null, null);
123+
BatchValidationException bve = new BatchValidationException();
124+
qus.insertRows(u, c, rows, bve, null, null);
125+
if (bve.hasErrors())
126+
{
127+
throw bve;
128+
}
124129
}
125130
catch (IOException | SQLException | BatchValidationException | QueryUpdateServiceException |
126131
DuplicateKeyException e)

0 commit comments

Comments
 (0)