Unable to instantiate workbook object using filepath paremeter

Aspose fails here :
fullPathOfFile = /u02/downloads/template.xlsx";
try{
Workbook wb = new Workbook(fullPathOfFile)
}catch (Exception e){…}

It seems to spend some time executing this line of code, but then it immediately jumps out of try-catch. There is no exception thrown… and wb remains null.

I checked the filepath…the file is there.

what could be wrong?

@redred,
Thank you for your query. The sample file is not uploaded with this thread. Please share your sample XLSX file for our testing. We will reproduce the issue here and provide assistance accordingly.

attached file :
c1template.zip (82.0 KB)

@redred,
We were able to observe System.FormatException 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

CELLSNET-47242 - System.FormatException on instantiate workbook

Thank you! Just fyi - I am facing this issue with java api. Not sure if that matters.

@redred,

We tested using Aspose.Cells for Java API and we are also able to observe an exception “java.lang.NumberFormatException” 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-43150 - Exception "java.lang.NumberFormatException" on file loading

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

Moreover, for your information, we have also fixed the issue in .NET (logged earlier as “CELLSNET-47242”) now. We can also share the fix for .NET users.

Here is the .NET fix for the ticket (logged earlier as “CELLSNET-47242”).
Aspose.Cells20.3.2 For .Net2_AuthenticodeSigned.Zip (5.3 MB)
Aspose.Cells20.3.2 For .Net4.0.Zip (5.3 MB)

@redred,

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

Your issue “CELLSJAVA-43150” should be fixed in it.

Let us know your feedback.
aspose-cells-20.3.3-java.zip (7.0 MB)

The issues you have found earlier (filed as CELLSNET-47242) have been fixed in Aspose.Cells for .NET v20.4. This message was posted using Bugs notification tool by Amjad_Sahi

The issues you have found earlier (filed as CELLSJAVA-43150) have been fixed in Aspose.Cells for Java v20.4. This message was posted using Bugs notification tool by ahsaniqbalsidiqui