Excel-file become corrupted after saving by Aspose


I have a file, which become corrupted, when I try to open its copy after saving by Aspose.
But the copy made without Aspose opens well.
The problem file: problem_file.zip (21.7 KB)

You can easilly test it with this code:

public void saveFileTest() throws Exception {

Path fileLocation = Paths.get("problem_file.xlsx");
byte[] bytes = Files.readAllBytes(fileLocation);

try (FileOutputStream simpleStream = new FileOutputStream("no_aspose_file.xlsx")) {

Workbook workbook = new Workbook(new ByteArrayInputStream(bytes));


Can you say what’s wrong with that file?
Or it’s bug in Aspoe?


Thanks for the template file and sample code.

After an initial test, I am able to observe the issue as you mentioned by using your sample code with your template file. I found that Ms Excel file becomes corrupted after saving by Aspose.Cells. I have logged a ticket with an id “CELLSJAVA-42879” for your issue. We will look into it soon.

Once we have an update on it, we will let you know.


This is to inform you that we have fixed your issue (logged earlier as “CELLSJAVA-42879”) now. We will soon provide you the fixed version after performing QA and incorporating other enhancements and fixes.

Thanks a lot, this is a good news!


You are welcome.

The issues you have found earlier (filed as CELLSJAVA-42879) have been fixed in Aspose.Cells for Java 19.4. This message was posted using BugNotificationTool from Downloads module by Amjad_Sahi