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

Free Support Forum - aspose.com

Chart causing workbook.Save to fail with Null Error


Our customer is having an issue with the attached report. We were able to trim this down to a single chart causing the failure. When we try to save this file using workbook.Save() the method throws an Object not set to an instance or reference error. This can be reproduced by simply opening and trying to save the file with aspose.

Workbook workbook = new Workbook(path);
workbook.Save(savePath); // <-- Fails

QueBIT File Issue.zip (11.0 KB)

Thank You,


We noticed the issue as you have described by re-saving your template file. We found an exception “Object reference not set to an instance of an object” on Workbook.Save() method. We have logged a ticket with an id “CELLSNET-47791” 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 now. We will soon provide you the fixed version after performing QA and incorporating other enhancements and fixes.


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

Your issue should be fixed in it.

Let us know your feedback.
Aspose.Cells20.12.1 For .Net2_AuthenticodeSigned.Zip (5.5 MB)
Aspose.Cells20.12.1 For .Net4.0.Zip (5.5 MB)
Aspose.Cells20.12.1 For .NetStandard20.Zip (5.4 MB)

I confirmed that this fixes the issue. Am I able to update to this version using nuget? If not when will it be posted to nuget?

Thank You,


Good to know that your issue is sorted out by the new fix/version. Please note, this fix is an interim release which includes all the features of Aspose.Cells for .NET v20.12 plus some new enhancements and other fixes. You may use this fix for production without any issue. However if you want to get/use the version of Nuget repos., then you have to wait for 10 -15 days or so. For your information, we publish official releases (one per month) on Nuget repos./Downloads section only. Our next official release (e.g Aspose.Cells for .NET v21.1, it will include the fix for your issue) is scheduled to be released in the third week of January 2021. We will notify you once the new release is released.

The issues you have found earlier (filed as CELLSNET-47791) have been fixed in this update. This message was posted using Bugs notification tool by simon.zhao