{"record":{"id":"ff16390631d8f591","repo":"qax-os/excelize","slug":"invalid-shared-string-index-d","errorCode":null,"errorMessage":"invalid shared string index %d","messagePattern":"invalid shared string index (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"errors.go","lineNumber":315,"sourceCode":"\treturn fmt.Errorf(\"invalid name %q, the name should be starts with a letter or underscore, can not include a space or character, and can not conflict with an existing name in the workbook\", name)\n}\n\n// newInvalidOptionalValue defined the error message on receiving the invalid\n// optional value.\nfunc newInvalidOptionalValue(name, value string, values []string) error {\n\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)","sourceCodeStart":297,"sourceCodeEnd":333,"githubUrl":"https://github.com/qax-os/excelize/blob/f2483381fbfbe432a6baa98d48a1c277183f3285/errors.go#L297-L333","documentation":"Error from newInvalidSharedStringIndex, returned by shared-string readers (getValueFrom, getFromStringItem) when an index into the shared strings table is negative or beyond its length; at fault is the index read from the worksheet XML, usually a sign of file corruption.","triggerScenarios":"Thrown at errors.go:315 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Treat the workbook as corrupted and fall back to re-creating or repairing it","Inspect the sst table count versus the cell's si attribute"],"exampleFix":null,"handlingStrategy":"fallback","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"}