{"record":{"id":"7dc2a1793b47b8a0","repo":"qax-os/excelize","slug":"slicer-s-does-not-exist","errorCode":null,"errorMessage":"slicer %s does not exist","messagePattern":"slicer (.+?) does not exist","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"errors.go","lineNumber":333,"sourceCode":"\treturn fmt.Errorf(\"invalid shared string index %d\", idx)\n}\n\n// newInvalidSlicerNameError defined the error message on receiving the invalid\n// slicer name.\nfunc newInvalidSlicerNameError(name string) error {\n\treturn fmt.Errorf(\"invalid slicer name %q\", name)\n}\n\n// newInvalidStyleID defined the error message on receiving the invalid style\n// ID.\nfunc newInvalidStyleID(styleID int) error {\n\treturn fmt.Errorf(\"invalid style ID %d\", styleID)\n}\n\n// newNoExistSlicerError defined the error message on receiving the non existing\n// slicer name.\nfunc newNoExistSlicerError(name string) error {\n\treturn fmt.Errorf(\"slicer %s does not exist\", name)\n}\n\n// newNoExistTableError defined the error message on receiving the non existing\n// table name.\nfunc newNoExistTableError(name string) error {\n\treturn fmt.Errorf(\"table %s does not exist\", name)\n}\n\n// newNotWorksheetError defined the error message on receiving a sheet which\n// not a worksheet.\nfunc newNotWorksheetError(name string) error {\n\treturn fmt.Errorf(\"sheet %s is not a worksheet\", name)\n}\n\n// newPivotTableColFieldsError defined the error message on same data field\n// appears both in the pivot table column fields and filter fields.\nfunc newPivotTableColFieldsError(data []string) error {\n\treturn fmt.Errorf(\"data fields %s appear both in the pivot table column fields and filter fields\", strings.Join(data, \", \"))","sourceCodeStart":315,"sourceCodeEnd":351,"githubUrl":"https://github.com/qax-os/excelize/blob/f2483381fbfbe432a6baa98d48a1c277183f3285/errors.go#L315-L351","documentation":"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.","triggerScenarios":"Thrown at errors.go:333 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check GetSlicers for the existing name before deleting","Ensure AddSlicer succeeded before attempting deletion"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f2483381fbfbe432a6baa98d48a1c277183f3285","analyzedAt":"2026-09-02T01:26:19.299Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T06:17:21.866Z"}