Cannot Edit Data of Generated Charts in PowerPoint Presentation in Java

I have created a simple presentation in Powerpoint with one basic chart (not a linked excel). When I edit the chart data in my code with aspose and save the presentation I can no longer access the data in powerpoint. Powerpoint gives me alert: “The linked file isn’t available. This error can occur if the linked file has been moved or hasn’t been saved. Embedding the data instead of linking it can help avoid this error, but the data won’t be updated automatically if it changes in the source file.”

this sounds similar to Unable to edit chart data in PowerPoint for Aspose.Slides generated chart (C# .NET) but in my case it’s aspose slides java.

Any help appreciated.

@raimo,
Thank you for contacting support.

Please check your results using the latest version of Aspose.Slides if it is possible. If the issue persists, please share the following data and information:

  • input and output presentation files (you can zip the files and upload them here)
  • code example that reproduces the alert
  • OS version where the code was executed
  • JDK version in your app
  • Aspose.Slides version you used

Thank you for your reply.
I’m using the 2022/4 version.
I managed to find the reason for the problem. I was passing an empty string to the series legend:

fact.getCell(defaultWorksheetIndex, 0, 1, seriesLegend); //seriesLegend == ""

Seems this is somewhat illegal value for the legend. PowerPoint doesn’t allow this and automatically replaces it to “Column 1” or something if trying manually set “” there.

Maybe you want to add check for this on your end too.

@raimo,
Thank you for the additional information. We are glad to know that the issue is already resolved on your end. Unfortunately, I was unable to reproduce the problem on my end. If you think that you have found some case of incorrect behavior of Aspose.Slides, please share the input and output presentation files with the chart and a comprehensive code example.