diff --git a/excel-importer/src/com/axonivy/util/excel/importer/wizard/ExcelImportProcessor.java b/excel-importer/src/com/axonivy/util/excel/importer/wizard/ExcelImportProcessor.java index e8e1fc7..e1850c5 100644 --- a/excel-importer/src/com/axonivy/util/excel/importer/wizard/ExcelImportProcessor.java +++ b/excel-importer/src/com/axonivy/util/excel/importer/wizard/ExcelImportProcessor.java @@ -97,12 +97,13 @@ public void run(IProgressMonitor monitor) throws InvocationTargetException { } private void importExcel(IProjectDataClassManager manager, FileResource excel, IProgressMonitor monitor) throws IOException { - String entityName = StringUtils.substringBeforeLast(excel.name(), "."); + String fileName = excel.path().lastSegment(); + String entityName = StringUtils.substringBeforeLast(fileName, "."); entityName = StringUtils.capitalize(entityName); Workbook wb = null; try(InputStream is = excel.read().inputStream()) { - wb = ExcelLoader.load(excel.name(), excel.read().inputStream()); + wb = ExcelLoader.load(fileName, excel.read().inputStream()); } Sheet sheet = wb.getSheetAt(0);