{"record":{"id":"49a8613998a4eeaa","repo":"qax-os/excelize","slug":"invalid-slicer-name-q","errorCode":null,"errorMessage":"invalid slicer name %q","messagePattern":"invalid slicer name %q","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"errors.go","lineNumber":321,"sourceCode":"\treturn fmt.Errorf(\"invalid %s value %q, acceptable value should be one of %s\", name, value, strings.Join(values, \", \"))\n}\n\n// newInvalidRowNumberError defined the error message on receiving the invalid\n// row number.\nfunc newInvalidRowNumberError(row int) error {\n\treturn fmt.Errorf(\"invalid row number %d\", row)\n}\n\n// newInvalidSharedStringIndex defined the error message on receive an invalid\n// shared string index.\nfunc newInvalidSharedStringIndex(idx int) error {\n\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)","sourceCodeStart":303,"sourceCodeEnd":339,"githubUrl":"https://github.com/qax-os/excelize/blob/f2483381fbfbe432a6baa98d48a1c277183f3285/errors.go#L303-L339","documentation":"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.","triggerScenarios":"Thrown at errors.go:321 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Create the source table first, then add the slicer","Verify the slicer name exists and matches its source"],"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"}