{"record":{"id":"9bc5e4f75e286df5","repo":"qax-os/excelize","slug":"invalid-column-name-q","errorCode":null,"errorMessage":"invalid column name %q","messagePattern":"invalid column name %q","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"errors.go","lineNumber":279,"sourceCode":"\treturn fmt.Errorf(\"incorrect number of tokens in criteria %q\", exp)\n}\n\n// newInvalidAutoFilterOperatorError defined the error message on receiving the\n// incorrect expression operator.\nfunc newInvalidAutoFilterOperatorError(op, exp string) error {\n\treturn fmt.Errorf(\"the operator %q in expression %q is not valid in relation to Blanks/NonBlanks\", op, exp)\n}\n\n// newInvalidCellNameError defined the error message on receiving the invalid\n// cell name.\nfunc newInvalidCellNameError(cell string) error {\n\treturn fmt.Errorf(\"invalid cell name %q\", cell)\n}\n\n// newInvalidColumnNameError defined the error message on receiving the\n// invalid column name.\nfunc newInvalidColumnNameError(col string) error {\n\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)","sourceCodeStart":261,"sourceCodeEnd":297,"githubUrl":"https://github.com/qax-os/excelize/blob/f2483381fbfbe432a6baa98d48a1c277183f3285/errors.go#L261-L297","documentation":"Error from newInvalidColumnNameError, a validation helper used by column style/width/insert APIs when a column name does not parse as valid letters (e.g. contains digits or punctuation); at fault is the column argument such as \"A\" or \"AB\".","triggerScenarios":"Thrown at errors.go:279 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass pure alphabetic column names","Convert numeric indices with ColumnNumberToName first"],"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"}