{"record":{"id":"03787b8f839ea597","repo":"qax-os/excelize","slug":"invalid-style-id-d","errorCode":null,"errorMessage":"invalid style ID %d","messagePattern":"invalid style ID (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"errors.go","lineNumber":327,"sourceCode":"\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)\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)","sourceCodeStart":309,"sourceCodeEnd":345,"githubUrl":"https://github.com/qax-os/excelize/blob/f2483381fbfbe432a6baa98d48a1c277183f3285/errors.go#L309-L345","documentation":"Error from newInvalidStyleID, returned by SetColStyle/SetRowStyle and stream writers when the style ID does not index an existing cellXfs entry in the style table; at fault is the integer style ID passed to the API.","triggerScenarios":"Thrown at errors.go:327 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use the ID returned by NewStyle","Default to 0 for the default style instead of an arbitrary number"],"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"}