{"record":{"id":"85486fac2d6ca352","repo":"SigNoz/signoz","slug":"encountered-multiple-errors-s","errorCode":null,"errorMessage":"encountered multiple errors: %s","messagePattern":"encountered multiple errors: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/query-service/app/querier/querier.go","lineNumber":396,"sourceCode":"\t\tif isLogs {\n\t\t\t// for logs we use limit to define the absolute limit and pagesize to define the current limit\n\t\t\tparams.CompositeQuery.BuilderQueries[qName].PageSize = limitWithOffset\n\t\t} else {\n\t\t\tparams.CompositeQuery.BuilderQueries[qName].Limit = limitWithOffset\n\t\t}\n\n\t\tqueries, err := q.builder.PrepareQueries(params)\n\t\tif err != nil {\n\t\t\treturn nil, nil, err\n\t\t}\n\t\tfor name, query := range queries {\n\t\t\trowList, err := q.reader.GetListResultV3(ctx, query)\n\t\t\tif err != nil {\n\t\t\t\terrs := []error{err}\n\t\t\t\terrQueriesByName := map[string]error{\n\t\t\t\t\tname: err,\n\t\t\t\t}\n\t\t\t\treturn nil, errQueriesByName, fmt.Errorf(\"encountered multiple errors: %s\", multierr.Combine(errs...))\n\t\t\t}\n\t\t\tlength += uint64(len(rowList))\n\n\t\t\t// skip the traces unless offset is 0\n\t\t\tfor _, row := range rowList {\n\t\t\t\tif offset == 0 {\n\t\t\t\t\tdata = append(data, row)\n\t\t\t\t} else {\n\t\t\t\t\toffset--\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tlimitWithOffset = limitWithOffset - length\n\n\t\tif isLogs && uint64(len(data)) >= pageSize {\n\t\t\t// for logs\n\t\t\tbreak","sourceCodeStart":378,"sourceCodeEnd":414,"githubUrl":"https://github.com/SigNoz/signoz/blob/5069bf80b08f1f00d7e014eccc09902f9871004f/pkg/query-service/app/querier/querier.go#L378-L414","documentation":"runWindowBasedListQuery executes GetListResultV3 per time window; if a single window's query fails, it wraps that error with multierr and returns immediately with a per-query error map containing the offending query name.","triggerScenarios":"QueryRange on a List panel (traces/logs) where the ClickHouse SQL for one window fails: schema errors, timeouts, connection loss mid-pagination.","commonSituations":"Timeout on a large window because start/end per window are wide, ClickHouse restart during pagination, version mismatch where generated SQL references missing columns.","solutions":["Read the wrapped multierr message for the underlying ClickHouse error and the errQueriesByName map for the query name","Shrink the requested time range so individual windows are cheaper","Check query-service logs for the exact SQL and ClickHouse error; verify schema/upgrade state","Retry after transient ClickHouse issues (connection resets, restarts)"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":"if err != nil && strings.Contains(err.Error(), \"encountered multiple errors\") {\n    if isTransientClickHouseErr(err) { time.Sleep(backoff); retry() }\n}","preventionTips":["Keep list-query time ranges modest","Ensure ClickHouse capacity for trace/log volume","Guard schema compatibility during upgrades"],"tags":["clickhouse","traces","logs","list-query"],"backgroundTag":"backend-query-execution-failed","analyzedSha":"5069bf80b08f1f00d7e014eccc09902f9871004f","analyzedAt":"2026-08-28T06:22:12.824Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}