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

Free Support Forum - aspose.com

Cannot load xlsx file

Please have a look at following code snippet written in Java:
import com.aspose.cells.Workbook;

import java.nio.file.Path;
import java.nio.file.Paths;

public class Main
{
    public static void main(String[] args) throws Exception
    {
        Path xlsxPath = Paths.get("xlsx.xlsx").toAbsolutePath();
        Workbook workbook = new Workbook(xlsxPath.toString());
    }
}

The code throws an exception for attached file file.zip (17.5 KB)
The exception is:

Exception in thread "main" com.aspose.cells.zctq: The file is corrupted.
	at com.aspose.cells.zctz.A(Unknown Source)
	at com.aspose.cells.zctz.D(Unknown Source)
	at com.aspose.cells.zctz.d(Unknown Source)
	at com.aspose.cells.zapz.a(Unknown Source)
	at com.aspose.cells.zapz.a(Unknown Source)
	at com.aspose.cells.zctg.g(Unknown Source)
	at com.aspose.cells.ze.a(Unknown Source)
	at com.aspose.cells.zaql.a(Unknown Source)
	at com.aspose.cells.zjy.a(Unknown Source)
	at com.aspose.cells.zjy.a(Unknown Source)
	at com.aspose.cells.Workbook.a(Unknown Source)
	at com.aspose.cells.Workbook.<init>(Unknown Source)

@wjeczalik,
We were able to observe the issue but we need to look into it more. We have logged the issue in our database for investigation and for a fix. Once, we will have some news for you, we will update you in this topic.

This issue has been logged as

CELLSJAVA-43265 - Cannot load xlsx file

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

@wjeczalik,

Please try our latest version/fix: Aspose.Cells for Java v20.8.2 (attached)

Your issue should be fixed in it.

Let us know your feedback.
aspose-cells-20.8.2-java.zip (7.2 MB)

Thanks, it works fine

@wjeczalik,

Good to know that your issue is resolved by the new fix/version. Feel free to contact us any time if you need further help or have some other issue or queries, we will be happy to assist you soon.

The issues you have found earlier (filed as CELLSJAVA-43265) have been fixed in Aspose.Cells for Java v20.9. This message was posted using Bugs notification tool by ahsaniqbalsidiqui.
You may also get the new version @ Maven repos. (https://repository.aspose.com/webapp/#/artifacts/browse/tree/General/repo/com/aspose/aspose-cells/20.9)