@KarthikMunjam
The original file “ExcelPivotFailure.xlsx” is corrupted because there is an unnecessary blank item in date group field.
It’s better that you can share a sample project to show to how to create ExcelPivotFailure.xlsx.
If ExcelPivotFailure.xlsx is generated by Aspose.Cells, we will try to make it work too.
Of course, we will try to fix this issue of null exception too.
@KarthikMunjam
Please ignore my previous posts.
The template file ExcelPivotFailure must be generated by Aspose.Cells.
I, We provide a new group method PivotField.GroupBy(PivotGroupByType[] groups, double interval, bool firstAsNewField) , then you do not need to assign start and end date time value.
2, We will add PivotField.MaxValue and PivotField.MinValue, then you can adjust and set the start and end time according them.
Then you can recreate your ExcelPivotFailure .xlsx template file.
@KarthikMunjam
If you want to refresh all pivot tables, you only need to call sheets.refreshAll() method .
We have fixed some issue refreshing pivot tables in ExcelPivotFailure.xlsx.
But we need more time to check how to refresh group field, so if a new Aspose.Cells is released, it’s better that you can PivotField.GroupBy(PivotGroupByType[] groups, double interval, bool firstAsNewField) to group date field when creating ExcelPivotFailure.xlsx.
@KarthikMunjam
Yes. There is a bug when using pivotField.groupBy(startDate, endDate, groupingArray, 1, false); to group the field which contains an empty pivot item. We will fix it soon.
And in the next version, we will provide pivotField.groupBy(groupingArray, 1, false); method which will auto detect the min and max date time in the pivot field.
You may expect the fix either in v25.12 or v26.1 which will be published in the first half of December 2025 or January 2026 (next month). We will update you once we release the supported version.
The issues you have found earlier (filed as CELLSNODEJSJAVA-81) have been fixed in this update. This message was posted using Bugs notification tool by duojie.yang