diff --git a/src/org/opendatakit/briefcase/export/SubmissionParser.java b/src/org/opendatakit/briefcase/export/SubmissionParser.java index b3174b379..a134d86ba 100644 --- a/src/org/opendatakit/briefcase/export/SubmissionParser.java +++ b/src/org/opendatakit/briefcase/export/SubmissionParser.java @@ -84,7 +84,14 @@ static List getOrderedListOfSubmissionFiles(FormDefinition formDef, DateRa Path submissionFile = instanceDir.resolve("submission.xml"); try { Optional submissionDate = readSubmissionDate(submissionFile); - paths.add(Pair.of(submissionFile, submissionDate.orElse(OffsetDateTime.of(1970, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)))); + if (formDef.isFileEncryptedForm() && !Files.exists(instanceDir.resolve("submission.xml.enc"))) + { + log.info(String.format("Can't find encrypted form file (submission.xml.enc) in %s", instanceDir.getFileName())); + } + else + { + paths.add(Pair.of(submissionFile, submissionDate.orElse(OffsetDateTime.of(1970, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)))); + } } catch (Throwable t) { log.error("Can't read submission date", t); EventBus.publish(ExportEvent.failureSubmission(formDef, instanceDir.getFileName().toString(), t));