We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Fail to open file (#1662)

Hi,
I have failed to open excel file using aspose.cells 17.11.0 for java. Can you help me with this?

String path = "sar_by_numb_12_sec1.xls";
Workbook workbook = new Workbook(path);

sar_by_numb_12_sec1.xls.zip (102.8 KB)

Regards,
Zeljko

@Zeljko,

Thanks for the template file.

After an initial test, I found an exception “java.lang.IllegalStateException: The structured storage seems to be corrupt” when loading the XLS file. The file seems to be corrupted as when I load the file into MS Excel manually, it prompts me error message(s).
e.g
Sample code:

String path = "sar_by_numb_12_sec1.xls"; 
Workbook workbook = new Workbook(path); 

Exception:

java.lang.IllegalStateException: The structured storage seems to be corrupt.
at com.aspose.cells.zsr.(Unknown Source)
at com.aspose.cells.zxl.c(Unknown Source)
at com.aspose.cells.zxl.b(Unknown Source)
at com.aspose.cells.zxl.(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.(Unknown Source)
at FailToOpenFile1.main(FailToOpenFile1.java:21)

I have logged a ticket with an id “CELLSJAVA-42609” for your issue. We will look into it soon.

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

@Zeljko

Thanks for using Aspose APIs.

We have looked into this issue further and found that file is corrupt so we are unable to fix this issue and closed it as Won’t Fix.

File really is corrupted, sorry I didn’t checked it before sending it to you. Thank you for the answer!

Regards

@Zeljko

No problem. Have a good day. Regards.