{"record":{"id":"8f7df0865bdb533c","repo":"apache/beam","slug":"vertex-ai-feature-store-s-does-not-exists-in-s","errorCode":null,"errorMessage":"Vertex AI Feature Store %s does not exists in %s","messagePattern":"Vertex AI Feature Store (.+?) does not exists in (.+?)","errorType":"exception","errorClass":"NotFound","httpStatus":null,"severity":"error","filePath":"sdks/python/apache_beam/transforms/enrichment_handlers/vertex_ai_feature_store.py","lineNumber":134,"sourceCode":"    except Exception:\n      _LOGGER.warning(\n          'Due to insufficient admin permission, could not verify '\n          'the existence of feature store. If the `exception_level` '\n          'is set to WARN then make sure the feature store exists '\n          'otherwise the data enrichment will not happen without '\n          'throwing an error.')\n    else:\n      location_path = admin_client.common_location_path(\n          project=self.project, location=self.location)\n      feature_store_path = admin_client.feature_online_store_path(\n          project=self.project,\n          location=self.location,\n          feature_online_store=self.feature_store_name)\n      feature_store = admin_client.get_feature_online_store(\n          name=feature_store_path)\n\n      if not feature_store:\n        raise NotFound(\n            'Vertex AI Feature Store %s does not exists in %s' %\n            (self.feature_store_name, location_path))\n\n  def __enter__(self):\n    \"\"\"Connect with the Vertex AI Feature Store.\"\"\"\n    self.client = aiplatform.gapic.FeatureOnlineStoreServiceClient(\n        **self.kwargs)\n    self.feature_view_path = self.client.feature_view_path(\n        self.project,\n        self.location,\n        self.feature_store_name,\n        self.feature_view_name)\n\n  def __call__(self, request: beam.Row, *args, **kwargs):\n    \"\"\"Fetches feature value for an entity-id from Vertex AI Feature Store.\n\n    Args:\n      request: the input `beam.Row` to enrich.","sourceCodeStart":116,"sourceCodeEnd":152,"githubUrl":"https://github.com/apache/beam/blob/12126d8942aaf848030c478b4c6a28c6af861c66/sdks/python/apache_beam/transforms/enrichment_handlers/vertex_ai_feature_store.py#L116-L152","documentation":"Raised in `VertexAIFeatureStoreEnrichmentHandler.__init__` as a `google.api_core.exceptions.NotFound` when the admin client's `get_feature_online_store` returns nothing for the given feature store name and location. This means the configured online feature store does not exist in the specified project/region.","triggerScenarios":"Constructing the handler with a `feature_store_name` (or location/project) that does not match an existing Vertex AI Feature Online Store; wrong region for a regional store; resource deleted before the pipeline ran.","commonSituations":"Regional endpoint mismatch (store in us-central1, location set to us-east1); typo in feature store name; environment switch (staging project lacks the resource); resource removed between pipeline deployments.","solutions":["Verify the online store exists: `gcloud ai feature-online-stores list --region=LOCATION` or `aiplatform.FeatureOnlineStore.list()`.","Correct `project`/`location`/`feature_store_name` so they reference the actual resource.","Create the feature online store before running the pipeline.","Ensure the credentials/service account can see the resource in the target project."],"exampleFix":"// before\nfeature_store_name='my_fs', location='us-east1'  # store lives in us-central1\n// after\nfeature_store_name='my_fs', location='us-central1'","handlingStrategy":"validation","validationCode":"from google.cloud import aiplatform\nstores = {s.name for s in aiplatform.FeatureOnlineStore.list(location=location)}\nassert feature_store_name in stores, f'{feature_store_name} not in {stores}'","typeGuard":null,"tryCatchPattern":"from google.api_core.exceptions import NotFound\ntry:\n    fs = admin_client.get_feature_online_store(name=path)\nexcept NotFound:\n    raise RuntimeError(f'Online store {feature_store_name} missing in {location}')","preventionTips":["Verify project/location/name with gcloud before deploying the pipeline.","Use regional endpoints matching the resource's region.","Add an IaC check that the online store exists pre-deployment."],"tags":["python","apache-beam","vertex-ai","not-found","gcp"],"backgroundTag":"resource-not-found","analyzedSha":"12126d8942aaf848030c478b4c6a28c6af861c66","analyzedAt":"2026-09-13T01:50:10.254Z","contentChangedAt":"2026-09-13T01:50:10.254Z","schemaVersion":2},"datasetVersion":"2026-09-14T21:17:11.552Z"}