PPT Document with Waterfall Charts Gets Corrupted when Editing It in Java

Hello, I’m using Aspose Slides for Java (Maven version 24.9) to edit Powerpoint documents by inserting text into text boxes and data into charts.

It’s been working fine until I had to work with a document that cointains Waterfall charts. Whenever I open that document, edit it and save it again, the resulting document seems corrupted. When I open the resulting document with Powerpoint, it warns me that the file has problems and asks me whether I want to restore it. If I restore it, the pages that should cointain Waterfall charts are blank.

I’ve tried a few things to rule out the possibility that I was breaking the charts by inserting malformed data somehow, or by using a corrupted file to begin with. I replicated the problem even with a newly created file that only had one page with a single Waterfall chart in it, and even if in my program I only opened it (using the ByteArrayInputStream constructor) and immediately saved it to a ByteArrayOutputStream.

I had no problem working with several types of charts until now (even complicated ones with multiple data series), but now I’m stumped. Has anyone experienced similar issues with Waterfall charts?

I don’t know if this can be related, but I’m working on a Mac computer and using the IOS version of Powerpoint to create the input file and open the output file.

Thank you.

Error message screenshot.png (118,7 KB)

Input and output documents.zip (93,8 KB)

@cozzag,
Thank you for describing the issue. I’ve reproduced the problem when loading and saving the PowerPoint presentation you provided. We apologize for any inconvenience caused.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESJAVA-39535

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

1 Like

The issues you found earlier (filed as SLIDESJAVA-39535) have been fixed in Aspose.Slides for Java 24.10 (JAR).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.