{"record":{"id":"4c580e2794e1ca68","repo":"qax-os/excelize","slug":"invalid-row-number-d","errorCode":null,"errorMessage":"invalid row number %d","messagePattern":"invalid row number (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"errors.go","lineNumber":309,"sourceCode":"\treturn fmt.Errorf(\"invalid link type %q\", linkType)\n}\n\n// newInvalidNameError defined the error message on receiving the invalid\n// defined name or table name.\nfunc newInvalidNameError(name string) error {\n\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)","sourceCodeStart":291,"sourceCodeEnd":327,"githubUrl":"https://github.com/qax-os/excelize/blob/f2483381fbfbe432a6baa98d48a1c277183f3285/errors.go#L291-L327","documentation":"Error from newInvalidRowNumberError, a row-validation helper used by row height/style/insert and cell-name joining APIs when a row number is zero, negative, or above the maximum; at fault is the row index passed to the calling API.","triggerScenarios":"Thrown at errors.go:309 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass rows within 1..MaxRowCount","Clamp computed row indices before calling row APIs"],"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"}