diff --git a/api/src/main/java/org/openmrs/module/initializer/api/CsvParser.java b/api/src/main/java/org/openmrs/module/initializer/api/CsvParser.java index b781126c..cc952bfc 100644 --- a/api/src/main/java/org/openmrs/module/initializer/api/CsvParser.java +++ b/api/src/main/java/org/openmrs/module/initializer/api/CsvParser.java @@ -189,6 +189,8 @@ public List getLines() { * @return The resulting CsvParserResult instance. */ public CsvFailingLines process(List lines) { + // Save cached objects to avoid losing them prematurely by other Parsers + // See DisplaysCsvParser#save(OpenmrsObject) Context.flushSession(); Context.clearSession();