{"record":{"id":"311a92fe189c57e2","repo":"googleapis/mcp-toolbox","slug":"failed-to-get-session-dataset-id-from-new-session","errorCode":null,"errorMessage":"failed to get session dataset ID from new session job","messagePattern":"failed to get session dataset ID from new session job","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/sources/bigquery/bigquery.go","lineNumber":448,"sourceCode":"\t\t}\n\n\t\tcreatedJob, err := s.RestService.Jobs.Insert(s.Project, job).Do()\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"failed to create new session: %w\", err)\n\t\t}\n\n\t\tvar sessionID, sessionDatasetID, projectID string\n\t\tif createdJob.Status != nil && createdJob.Statistics.SessionInfo != nil {\n\t\t\tsessionID = createdJob.Statistics.SessionInfo.SessionId\n\t\t} else {\n\t\t\treturn nil, fmt.Errorf(\"failed to get session ID from new session job\")\n\t\t}\n\n\t\tif createdJob.Configuration != nil && createdJob.Configuration.Query != nil && createdJob.Configuration.Query.DestinationTable != nil {\n\t\t\tsessionDatasetID = createdJob.Configuration.Query.DestinationTable.DatasetId\n\t\t\tprojectID = createdJob.Configuration.Query.DestinationTable.ProjectId\n\t\t} else {\n\t\t\treturn nil, fmt.Errorf(\"failed to get session dataset ID from new session job\")\n\t\t}\n\n\t\ts.Session = &Session{\n\t\t\tID:           sessionID,\n\t\t\tProjectID:    projectID,\n\t\t\tDatasetID:    sessionDatasetID,\n\t\t\tCreationTime: creationTime,\n\t\t\tLastUsed:     creationTime,\n\t\t}\n\t\treturn s.Session, nil\n\t}\n}\n\nfunc (s *Source) UseClientAuthorization() bool {\n\treturn strings.ToLower(s.UseClientOAuth) != \"false\" && s.UseClientOAuth != \"\"\n}\n\nfunc (s *Source) GetAuthTokenHeaderName() string {","sourceCodeStart":430,"sourceCodeEnd":466,"githubUrl":"https://github.com/googleapis/mcp-toolbox/blob/8cc6e09de2ad7b8bffc77751799585a1401a48eb/internal/sources/bigquery/bigquery.go#L430-L466","documentation":"Error \"failed to get session dataset ID from new session job\" thrown in googleapis/mcp-toolbox.","triggerScenarios":"Thrown at internal/sources/bigquery/bigquery.go:448 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":"8cc6e09de2ad7b8bffc77751799585a1401a48eb","analyzedAt":"2026-09-05T01:10:36.887Z","contentChangedAt":"2026-09-05T01:10:36.887Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}