{"record":{"id":"278cf84bd39751e3","repo":"googleapis/mcp-toolbox","slug":"failed-to-search-entries-w","errorCode":null,"errorMessage":"failed to search entries: %w","messagePattern":"failed to search entries: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/sources/dataplex/dataplex.go","lineNumber":374,"sourceCode":"\t}\n\tit, err := s.searchRequest(ctx, query, pageSize, orderBy, scope)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar results []*dataplexpb.SearchEntriesResult\n\tfor len(results) < pageSize {\n\t\tentry, err := it.Next()\n\t\tif err == iterator.Done {\n\t\t\tbreak\n\t\t}\n\t\tif err != nil {\n\t\t\tif st, ok := grpcstatus.FromError(err); ok {\n\t\t\t\terrorCode := st.Code()\n\t\t\t\terrorMessage := st.Message()\n\t\t\t\treturn nil, fmt.Errorf(\"failed to search entries with error code: %q message: %s\", errorCode.String(), errorMessage)\n\t\t\t}\n\t\t\treturn nil, fmt.Errorf(\"failed to search entries: %w\", err)\n\t\t}\n\t\tresults = append(results, entry)\n\t}\n\treturn results, nil\n}\n\nfunc (s *Source) LookupContext(ctx context.Context, name string, resources []string) (*dataplexpb.LookupContextResponse, error) {\n\treq := &dataplexpb.LookupContextRequest{\n\t\tName:      name,\n\t\tResources: resources,\n\t}\n\tresult, err := s.CatalogClient().LookupContext(ctx, req)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn result, nil\n}\n","sourceCodeStart":356,"sourceCodeEnd":392,"githubUrl":"https://github.com/googleapis/mcp-toolbox/blob/8cc6e09de2ad7b8bffc77751799585a1401a48eb/internal/sources/dataplex/dataplex.go#L356-L392","documentation":"Error \"failed to search entries: %w\" thrown in googleapis/mcp-toolbox.","triggerScenarios":"Thrown at internal/sources/dataplex/dataplex.go:374 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"}