Skip to content

Commit

Permalink
AMP-30885: Configure Internal projects for Ecowas
Browse files Browse the repository at this point in the history
  • Loading branch information
brianbrix committed Nov 4, 2024
1 parent fc5694e commit dfddb70
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class ExcelImporter {

public static int processExcelFileInBatches(ImportedFilesRecord importedFilesRecord, File file, HttpServletRequest request, Map<String, String> config, boolean isInternal, Set<ImportedProject> importedProjects) {
int res=0;
ImportedFileUtil.updateFileStatus(importedFilesRecord, ImportStatus.IN_PROGRESS);
ImportedFileUtil.updateFileStatus(importedFilesRecord, ImportStatus.IN_PROGRESS, importedProjects);
try (Workbook workbook = new XSSFWorkbook(file)) {
int numberOfSheets = workbook.getNumberOfSheets();
logger.info("Number of sheets: " + numberOfSheets);
Expand All @@ -59,7 +59,7 @@ public static int processExcelFileInBatches(ImportedFilesRecord importedFilesRec
logger.info("Closing the workbook...");
res =1;
} catch (IOException e) {
ImportedFileUtil.updateFileStatus(importedFilesRecord, ImportStatus.FAILED);
ImportedFileUtil.updateFileStatus(importedFilesRecord, ImportStatus.FAILED, importedProjects);
logger.error("Error processing Excel file: " + e.getMessage(), e);
} catch (InvalidFormatException | InvalidOperationException e) {
logger.error("Error processing Excel file: " + e.getMessage(),e);
Expand Down

0 comments on commit dfddb70

Please sign in to comment.