qax-os/excelize · error
slicer %s does not exist
Error message
slicer %s does not exist
What it means
Dynamic error created by newNoExistSlicerError when an operation references a slicer name that is not defined in the workbook. It is raised by DeleteSlicer and TestSlicer: the input at fault is the slicer name argument, which fails a lookup against the workbook's existing slicers. Deleting a non-existent slicer is treated as an error rather than a no-op.
Source
Thrown at errors.go:333
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)
}
// newNotWorksheetError defined the error message on receiving a sheet which
// not a worksheet.
func newNotWorksheetError(name string) error {
return fmt.Errorf("sheet %s is not a worksheet", name)
}
// newPivotTableColFieldsError defined the error message on same data field
// appears both in the pivot table column fields and filter fields.
func newPivotTableColFieldsError(data []string) error {
return fmt.Errorf("data fields %s appear both in the pivot table column fields and filter fields", strings.Join(data, ", "))View on GitHub (pinned to f2483381fb)
Solutions
- Check GetSlicers for the existing name before deleting
- Ensure AddSlicer succeeded before attempting deletion
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at errors.go:333 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/7dc2a1793b47b8a0.
Report an issue: GitHub.