If I add more than 2 ColumnLabel fields to my Pivot, the Excel which will be created is not valid anymore. Just 2 column labels are fine, if you need more you cant add them. Example: pivotTable.addColumnLabel(DataConsolidateFunction.SUM, 4); pivotTable.addColumnLabel(DataConsolidateFunction.SUM, 5); pivotTable.addColumnLabel(DataConsolidateFunction.COUNT, 7); pivotTable.addColumnLabel(DataConsolidateFunction.COUNT, 8); Does not work. If you pick just 2 of the, it works.
Created attachment 32310 [details] Fix for bug 57071
Thanks for that Kamil! Any chance of a small unit test to go with the patch? That'll let us verify that the fix has worked, as well as ensuring it stays fixed into the future!
Created attachment 32312 [details] unit tests to the patch
Thanks, patch and test applied in r1647088.