I am getting the following error
com.google.apps.framework.request.BadRequestException: [ResourceName error] Path 'output_dataset name' does not match template 'projects/{project_id_or_number=*}/locations/{location_id=*}/metadataStores/{metadata_store_id=*}/artifacts/{artifact_id=*}'.
when running Kubeflow pipelines on Vertex AI Pipelines.
My pipeline can be seen below:
from google.cloud import aiplatform
from kfp import compiler, dsl
from kfp.dsl import Dataset, Output
@dslponent(base_image="python:3.12")
def component_a(output_dataset: Output[Dataset]):
output_dataset.name = "output_dataset name"
output_dataset.uri = "gs://some/uri"
output_dataset.metadata["key"] = "value"
@dsl.pipeline(name="pipeline", pipeline_root="gs://pipeline/root")
def pipeline_a():
component_a().set_display_name("Component A")
if __name__ == "__main__":
compiler.Compiler()pile(pipeline_func=pipeline_a, package_path="pipeline.yaml")
aiplatform.init(project="project_id", location="location")
job = aiplatform.PipelineJob(display_name="Pipeline", template_path="pipeline.yaml")
job.submit(service_account="service_account")