{"record":{"id":"1921134147a0a018","repo":"qax-os/excelize","slug":"invalid-name-q-the-name-should-be-starts-with-a","errorCode":null,"errorMessage":"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","messagePattern":"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","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"errors.go","lineNumber":297,"sourceCode":"\treturn fmt.Errorf(\"invalid column name %q\", col)\n}\n\n// newInvalidExcelDateError defined the error message on receiving the data\n// with negative values.\nfunc newInvalidExcelDateError(dateValue float64) error {\n\treturn fmt.Errorf(\"invalid date value %f, negative values are not supported\", dateValue)\n}\n\n// newInvalidLinkTypeError defined the error message on receiving the invalid\n// hyper link type.\nfunc newInvalidLinkTypeError(linkType string) error {\n\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)","sourceCodeStart":279,"sourceCodeEnd":315,"githubUrl":"https://github.com/qax-os/excelize/blob/f2483381fbfbe432a6baa98d48a1c277183f3285/errors.go#L279-L315","documentation":"Error \"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\" thrown in qax-os/excelize.","triggerScenarios":"Thrown at errors.go:297 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Start the name with a letter or underscore","Remove spaces and disallowed punctuation","Pick a name not already used by another defined name or table"],"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"}