-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
duplicateThis issue or pull request already existsThis issue or pull request already exists
Description
Description
Steps to reproduce the issue:
-
I created a pivot table by this simple data and generated a simple pivot table
-
But after I use Excel's Analyze - Fields, Items, and Sets - Calculated Fields function to add a field, and call
func (f *File) getPivotTable(sheet, pivotTableXML, pivotCacheRels string)
Describe the results you received:
I get panic: "msg":"runtime error: index out of range [3] with length 3"
Describe the results you expected:
The error was reported at line 955 of the func (f *File) extractPivotTableFields(order []string, pt *xlsxPivotTableDefinition, opts *PivotTableOptions)
, the pivot table has four fields, but the length of the ORDER is still 3.
Output of go version
:
1.22
Excelize version or commit ID:
v2.9.1-0.20241221071117-9934bf5c8634
Metadata
Metadata
Assignees
Labels
duplicateThis issue or pull request already existsThis issue or pull request already exists