Free Support Forum - aspose.com

Pivot table documentation example error

I am trying to run this example:

https://docs.aspose.com/display/cellsjava/Refresh+and+Calculate+Pivot+Table+having+Calculated+Items

and it is throwing this exception:

  Exception in thread "main" java.lang.ClassCastException: java.util.HashMap$Node cannot be cast to com.aspose.cells.b.a.a.za
at com.aspose.cells.PivotTable.a(Unknown Source)
at com.aspose.cells.PivotTable.calculateData(Unknown Source)

@Mchirlin,

Thanks for pointing it out.

Please notice, I am able to reproduce the issue by using the sample code with the template file (attached to the document) in Aspose.Cells for Java docs. I have logged a ticket with an id “CELLSJAVA-43183” for your issue. We will look into it soon,

Once we have an update on it, we will let you know.

@Mchirlin,

This is to inform you that we have fixed your issue (logged earlier as “CELLSJAVA-43183”) now. The fix would be included in the upcoming release Aspose.Cells for Java v20.5 (the release is expected in the next few days).

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