Issue
When importing a Microsoft Excel file using the ExcelImporter module, the following error occurs:
Document could not be imported, because:
Fail to save: an error occurs while saving the package : Zip File is closedThe import process fails before the data is imported into the application.
Environment
- Studio Pro (all versions)
- Excel Importer v10.7.7
- Community Commons v10.2.0
Cause
This error can occur when the application contains incompatible Java Archive (JAR) files in the project's userlib directory.
Multiple Marketplace modules can include different versions of shared libraries, such as Apache POI. Incompatible library versions can cause runtime conflicts during Excel processing, resulting in the following exception:
Caused by: java.lang.IllegalStateException: Zip File is closedThe issue can also occur when the installed versions of ExcelImporter, Community Commons, or other Marketplace modules are not compatible with the Studio Pro version used by the application.
Solution/Workaround
Verify that all Marketplace modules are compatible with the Studio Pro version and remove any conflicting JAR files.
- Determine the Studio Pro version used by the application.
- Review the Marketplace pages for
ExcelImporter,Community Commons, and any other modules that contribute libraries to the userlib directory. - Verify that the installed module versions are supported for the Studio Pro version.
- Update the modules to compatible versions if required.
- Open the project's userlib directory(can be accessed via Studio Pro by navigating to App > Show App Directory in Explorer)
- Review the JAR files included by Marketplace modules.
- Identify overlapping dependencies, particularly Apache POI libraries.
- Follow the cleanup procedure described in the related knowledge base article for cleaning the userlib directory.
- Remove any conflicting or obsolete JAR files.
- Restart the application.
- Retry the import.
If multiple versions of the same dependency are present, retain only the version required by the compatible Marketplace modules.
Internal information related
278675
Additional information
- Mendix documentation:
- Related KBA:
0 Comments