{"record":{"id":"6815e4de362fa9fe","repo":"grafana/k6","slug":"fromline-must-be-less-than-or-equal-to-toline","errorCode":null,"errorMessage":"fromLine must be less than or equal to toLine","messagePattern":"fromLine must be less than or equal to toLine","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/experimental/csv/module.go","lineNumber":363,"sourceCode":"\n\tif v := obj.Get(\"skipFirstLine\"); v != nil {\n\t\toptions.SkipFirstLine = v.ToBoolean()\n\t}\n\n\tif v := obj.Get(\"fromLine\"); v != nil {\n\t\toptions.FromLine = null.IntFrom(v.ToInteger())\n\t}\n\n\tif v := obj.Get(\"toLine\"); v != nil {\n\t\toptions.ToLine = null.IntFrom(v.ToInteger())\n\t}\n\n\tif v := obj.Get(\"asObjects\"); v != nil {\n\t\toptions.AsObjects = null.BoolFrom(v.ToBoolean())\n\t}\n\n\tif options.FromLine.Valid && options.ToLine.Valid && options.FromLine.Int64 >= options.ToLine.Int64 {\n\t\treturn options, fmt.Errorf(\"fromLine must be less than or equal to toLine\")\n\t}\n\n\treturn options, nil\n}\n","sourceCodeStart":345,"sourceCodeEnd":368,"githubUrl":"https://github.com/grafana/k6/blob/93accf6570dcd306ca5e99cc44c393ee3797761b/internal/js/modules/k6/experimental/csv/module.go#L345-L368","documentation":"Error \"fromLine must be less than or equal to toLine\" thrown in grafana/k6.","triggerScenarios":"Thrown at internal/js/modules/k6/experimental/csv/module.go:363 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"93accf6570dcd306ca5e99cc44c393ee3797761b","analyzedAt":"2026-08-15T21:23:27.118Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}