{"record":{"id":"d1750358d328842f","repo":"grafana/k6","slug":"max-allowed-number-of-time-series-in-a-single-batc","errorCode":null,"errorMessage":"max allowed number of time series in a single batch must be a positive number but is %d","messagePattern":"max allowed number of time series in a single batch must be a positive number but is (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/cmd/outputs_cloud.go","lineNumber":97,"sourceCode":"\t\ttest.derivedConfig.ExecutionSegmentSequence,\n\t)\n\tif err != nil {\n\t\treturn err\n\t}\n\texecutionPlan := test.derivedConfig.Scenarios.GetFullExecutionRequirements(et)\n\n\tduration, testEnds := lib.GetEndOffset(executionPlan)\n\tif !testEnds {\n\t\treturn errors.New(\"tests with unspecified duration are not allowed when outputting data to k6 cloud\")\n\t}\n\n\tif conf.MetricPushConcurrency.Int64 < 1 {\n\t\treturn fmt.Errorf(\"metrics push concurrency must be a positive number but is %d\",\n\t\t\tconf.MetricPushConcurrency.Int64)\n\t}\n\n\tif conf.MaxTimeSeriesInBatch.Int64 < 1 {\n\t\treturn fmt.Errorf(\"max allowed number of time series in a single batch must be a positive number but is %d\",\n\t\t\tconf.MaxTimeSeriesInBatch.Int64)\n\t}\n\n\tif conf.PushRefID.Valid && conf.PushRefID.String != \"\" {\n\t\tif err := applyExternalProvisioningCreds(gs, test, &conf); err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttest.preInitState.RuntimeOptions.Env[testRunIDKey] = conf.PushRefID.String\n\t\tgs.Logger.Debug(\"using PushRefID, skipping CreateTestRun\")\n\t\t// Externally-provisioned run: the run id is the PushRefID.\n\t\tconfigureCloudLogPusher(gs, conf, conf.PushRefID.String)\n\t\treturn nil\n\t}\n\n\tvar testArchive *lib.Archive\n\tif !test.derivedConfig.NoArchiveUpload.Bool {\n\t\ttestArchive = test.makeArchive()\n\t}","sourceCodeStart":79,"sourceCodeEnd":115,"githubUrl":"https://github.com/grafana/k6/blob/93accf6570dcd306ca5e99cc44c393ee3797761b/internal/cmd/outputs_cloud.go#L79-L115","documentation":"Error \"max allowed number of time series in a single batch must be a positive number but is %d\" thrown in grafana/k6.","triggerScenarios":"Thrown at internal/cmd/outputs_cloud.go:97 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"}