qax-os/excelize · error
invalid slicer name %q
Error message
invalid slicer name %q
What it means
Error from newInvalidSlicerNameError, returned by getSlicerSource when a slicer's referenced source (e.g. table or name) does not resolve to a valid slicer source in the workbook; at fault is the slicer name looked up during AddSlicer/DeleteSlicer.
Source
Thrown at errors.go:321
return fmt.Errorf("invalid %s value %q, acceptable value should be one of %s", name, value, strings.Join(values, ", "))
}
// newInvalidRowNumberError defined the error message on receiving the invalid
// row number.
func newInvalidRowNumberError(row int) error {
return fmt.Errorf("invalid row number %d", row)
}
// newInvalidSharedStringIndex defined the error message on receive an invalid
// shared string index.
func newInvalidSharedStringIndex(idx int) error {
return fmt.Errorf("invalid shared string index %d", idx)
}
// newInvalidSlicerNameError defined the error message on receiving the invalid
// slicer name.
func newInvalidSlicerNameError(name string) error {
return fmt.Errorf("invalid slicer name %q", name)
}
// newInvalidStyleID defined the error message on receiving the invalid style
// ID.
func newInvalidStyleID(styleID int) error {
return fmt.Errorf("invalid style ID %d", styleID)
}
// newNoExistSlicerError defined the error message on receiving the non existing
// slicer name.
func newNoExistSlicerError(name string) error {
return fmt.Errorf("slicer %s does not exist", name)
}
// newNoExistTableError defined the error message on receiving the non existing
// table name.
func newNoExistTableError(name string) error {
return fmt.Errorf("table %s does not exist", name)View on GitHub (pinned to f2483381fb)
Solutions
- Create the source table first, then add the slicer
- Verify the slicer name exists and matches its source
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at errors.go:321 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of qax-os/excelize@f2483381fb (2026-09-02).
Data as JSON: /api/errors/49a8613998a4eeaa.
Report an issue: GitHub.