{"record":{"id":"fa65eb6005eb8a0c","repo":"googleapis/mcp-toolbox","slug":"allowedfhirstore-s-not-found-in-dataset-s","errorCode":null,"errorMessage":"allowedFhirStore '%s' not found in dataset '%s'","messagePattern":"allowedFhirStore '(.+?)' not found in dataset '(.+?)'","errorType":"exception","errorClass":null,"httpStatus":404,"severity":"error","filePath":"internal/sources/cloudhealthcare/cloud_healthcare.go","lineNumber":116,"sourceCode":"\t\tservice = svc\n\t\ttokenSource = tok\n\t}\n\n\tdsName := fmt.Sprintf(\"projects/%s/locations/%s/datasets/%s\", c.Project, c.Region, c.Dataset)\n\tif _, err = svc.Projects.Locations.Datasets.FhirStores.Get(dsName).Do(); err != nil {\n\t\tif gerr, ok := err.(*googleapi.Error); ok && gerr.Code == http.StatusNotFound {\n\t\t\treturn nil, fmt.Errorf(\"dataset '%s' not found\", dsName)\n\t\t}\n\t\treturn nil, fmt.Errorf(\"failed to verify existence of dataset '%s': %w\", dsName, err)\n\t}\n\n\tallowedFHIRStores := make(map[string]struct{})\n\tfor _, store := range c.AllowedFHIRStores {\n\t\tname := fmt.Sprintf(\"%s/fhirStores/%s\", dsName, store)\n\t\t_, err := svc.Projects.Locations.Datasets.FhirStores.Get(name).Do()\n\t\tif err != nil {\n\t\t\tif gerr, ok := err.(*googleapi.Error); ok && gerr.Code == http.StatusNotFound {\n\t\t\t\treturn nil, fmt.Errorf(\"allowedFhirStore '%s' not found in dataset '%s'\", store, dsName)\n\t\t\t}\n\t\t\treturn nil, fmt.Errorf(\"failed to verify allowedFhirStore '%s' in datasest '%s': %w\", store, dsName, err)\n\t\t}\n\t\tallowedFHIRStores[store] = struct{}{}\n\t}\n\tallowedDICOMStores := make(map[string]struct{})\n\tfor _, store := range c.AllowedDICOMStores {\n\t\tname := fmt.Sprintf(\"%s/dicomStores/%s\", dsName, store)\n\t\t_, err := svc.Projects.Locations.Datasets.DicomStores.Get(name).Do()\n\t\tif err != nil {\n\t\t\tif gerr, ok := err.(*googleapi.Error); ok && gerr.Code == http.StatusNotFound {\n\t\t\t\treturn nil, fmt.Errorf(\"allowedDicomStore '%s' not found in dataset '%s'\", store, dsName)\n\t\t\t}\n\t\t\treturn nil, fmt.Errorf(\"failed to verify allowedDicomFhirStore '%s' in datasest '%s': %w\", store, dsName, err)\n\t\t}\n\t\tallowedDICOMStores[store] = struct{}{}\n\t}\n\ts := &Source{","sourceCodeStart":98,"sourceCodeEnd":134,"githubUrl":"https://github.com/googleapis/mcp-toolbox/blob/8cc6e09de2ad7b8bffc77751799585a1401a48eb/internal/sources/cloudhealthcare/cloud_healthcare.go#L98-L134","documentation":"Error \"allowedFhirStore '%s' not found in dataset '%s'\" thrown in googleapis/mcp-toolbox.","triggerScenarios":"Thrown at internal/sources/cloudhealthcare/cloud_healthcare.go:116 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"}