{"record":{"id":"8b7b81ced58905cc","repo":"apache/beam","slug":"could-not-find-the-feature-service-s-for-the-feature-store","errorCode":null,"errorMessage":"Could not find the feature service %s for the feature store configured in %s.","messagePattern":"Could not find the feature service (.+?) for the feature store configured in (.+?)\\.","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"sdks/python/apache_beam/transforms/enrichment_handlers/feast_feature_store.py","lineNumber":160,"sourceCode":"    _validate_feature_store_yaml_path_exists(self.feature_store_yaml_path)\n    _validate_feature_names(self.feature_names, self.feature_service_name)\n\n  def __enter__(self):\n    \"\"\"Connect with the Feast feature store.\"\"\"\n    local_repo_path = download_fs_yaml_file(self.feature_store_yaml_path)\n    try:\n      self.store = FeatureStore(fs_yaml_file=local_repo_path)\n    except Exception:\n      raise RuntimeError(\n          'Invalid feature store yaml file provided. Make sure '\n          'the %s contains the valid configuration for Feast feature store.' %\n          self.feature_store_yaml_path)\n    if self.feature_service_name:\n      try:\n        self.features = self.store.get_feature_service(\n            self.feature_service_name)\n      except Exception:\n        raise RuntimeError(\n            'Could not find the feature service %s for the feature '\n            'store configured in %s.' %\n            (self.feature_service_name, self.feature_store_yaml_path))\n    else:\n      self.features = self.feature_names\n\n  def __call__(self, request: beam.Row, *args, **kwargs):\n    \"\"\"Fetches feature values for an entity-id from the Feast feature store.\n\n    Args:\n      request: the input `beam.Row` to enrich.\n    \"\"\"\n    if self.entity_row_fn:\n      entity_dict = self.entity_row_fn(request)\n    else:\n      request_dict = request._asdict()\n      entity_dict = {self.entity_id: request_dict[self.entity_id]}\n    feature_values = self.store.get_online_features(","sourceCodeStart":142,"sourceCodeEnd":178,"githubUrl":"https://github.com/apache/beam/blob/12126d8942aaf848030c478b4c6a28c6af861c66/sdks/python/apache_beam/transforms/enrichment_handlers/feast_feature_store.py#L142-L178","documentation":"Raised in `__enter__` when `store.get_feature_service(self.feature_service_name)` raises, i.e. the configured feature service name does not exist in the Feast registry described by the yaml. The handler converts this into a RuntimeError naming both the service and the yaml path.","triggerScenarios":"Constructing the handler with a `feature_service_name` string that is absent from the feature store registry — renamed service, wrong Feast project, stale registry file, or a typo.","commonSituations":"Feature service renamed in the Feast repo without updating the Beam pipeline config; registry.db rebuilt and the service removed; pointing the yaml at a different project than the one containing the service.","solutions":["List available services (`store.list_feature_services()`) locally and use the exact name.","Sync/refresh the registry file the yaml points to so it contains the feature service.","Confirm the yaml's `project` matches the project where the feature service was defined.","Fix typos in `feature_service_name`."],"exampleFix":"// before\nfeature_service_name='user_daily_features_v1'\n// after (name in registry)\nfeature_service_name='user_daily_features'","handlingStrategy":"validation","validationCode":"from feast import FeatureStore\nstore = FeatureStore(fs_yaml_file='feature_store.yaml')\nassert feature_service_name in {fs.name for fs in store.list_feature_services()}","typeGuard":null,"tryCatchPattern":"try:\n    svc = store.get_feature_service(name)\nexcept Exception as e:\n    raise RuntimeError(f'Feature service {name} not found: {e!r}') from e","preventionTips":["Regenerate the registry file after any feature repo change.","Confirm the feast project in the yaml matches the feature service's project.","Keep feature service names in shared constants between repo and pipeline."],"tags":["python","apache-beam","feast","resource-not-found"],"backgroundTag":"entity-not-found","analyzedSha":"12126d8942aaf848030c478b4c6a28c6af861c66","analyzedAt":"2026-09-13T01:50:10.254Z","contentChangedAt":"2026-09-13T01:50:10.254Z","schemaVersion":2},"datasetVersion":"2026-09-20T03:17:13.778Z"}