IChartDataCell.getValue(): ClassCastException: BigDecimal incompatible with com.aspose.slides.ms.System.volatile

The following preconditions are needed in order to reproduce this Exception:

  • a chart on a slide
  • the data for this chart needs a calculation
  • the formula references another cell
  • the value of that cell needs to be replaced by a BigDecimal instance
  • the value of the cell with the calculation must be taken AFTER the value of the other cell has been replaced

I attached an example Eclipse project:
aspose ClassCastException.zip (75.9 KB)

Feel free to ask for further information.

@fbu,
Thank you for the issue description. It will take me a while to investigate this case. I will reply to you as soon as possible.

@fbu,
Far as I can see, you use Aspose.Slides 20.8. I checked the problem and got the same result. But this error disappeared with version 21.8. Please use the latest version of Aspose.Slides.

1 Like