# GCSToElasticsearch Template

**URL:** <https://discuss.elastic.co/t/gcstoelasticsearch-template/323834>\
**Category:** Elasticsearch\
**Created:** [January 24, 2023, 12:58pm UTC](https://discuss.elastic.co/t/gcstoelasticsearch-template/323834 "2023-01-24T12:58:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roque\_Moyano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roque_moyano/32/116329_2.png) [@Roque\_Moyano](https://discuss.elastic.co/u/Roque_Moyano)\
**Post date:** [January 24, 2023, 12:58pm UTC](https://discuss.elastic.co/t/gcstoelasticsearch-template/323834/1 "2023-01-24T12:58:58Z")

</div>

Hi, I'm following this tutorial: [Ingest data directly from Google Cloud Storage into Elastic using Google Dataflow | Elastic Blog](https://www.elastic.co/blog/ingest-data-directly-from-google-cloud-storage-into-elastic-using-google-dataflow)

but when the dataflow job is running I got this error:

```auto
{"severity":"INFO","time":"2023/01/24 12:23:38.224114","line":"exec.go:38","message":"Executing: java -cp /template/gcs-to-elasticsearch/gcs-to-elasticsearch-conscrypt.jar:/template/gcs-to-elasticsearch/*:/template/gcs-to-elasticsearch/libs/*:/template/gcs-to-elasticsearch/classes com.google.cloud.teleport.v2.elasticsearch.templates.GCSToElasticsearch --delimiter=, --apiKey=YnF5NDQ0VUJ6QXdEbE1GM2YtVUQ6NmwzNGZRbmFTc09IbExSSTdnUlY0UQ== --connectionUrl=elastic-craftlabs:dXMtY2VudHJhbDEuZ2NwLmNsb3VkLmVzLmlvOjQ0MyRlNWZhM2RmYzZlNmY0YTA4OTZiMTI3YmQxZjJkOGFhMSQ0ZThmNTQwMzFkNTc0MGM0YjRjYTliNGY4MjgzOTYwNw== --serviceAccount=554339879332-compute@developer.gserviceaccount.com --templateLocation=gs://dataflow-staging-us-central1-554339879332/staging/template_launches/2023-01-24_04_22_25-6029852043322062261/job_object --stagingLocation=gs://dataflow-staging-us-central1-554339879332/staging --labels={\n \"goog-dataflow-provided-template-name\" : \"gcs_to_elasticsearch\",\n \"goog-dataflow-provided-template-type\" : \"flex\"\n}\n --inputFileSpec=gs://bucket-terra-craftlabs/2.5_month.csv --runner=DataflowRunner --project=craftlabs-sandbox --tempLocation=gs://dataflow-staging-us-central1-554339879332/tmp --index=quakes --jobName=elastic4 --region=us-central1 --deadletterTable=craftlabs-sandbox:dataflow_test.error_queue"}
{"severity":"INFO","time":"2023/01/24 12:23:46.775422","line":"exec.go:66","message":"org.apache.beam.runners.dataflow.DataflowRunner - PipelineOptions.filesToStage was not specified. Defaulting to files from the classpath: will stage 2 files. Enable logging at DEBUG level to see which files will be staged."}
{"severity":"ERROR","time":"2023/01/24 12:23:47.834478","line":"exec.go:66","message":"com.google.cloud.teleport.v2.common.UncaughtExceptionLogger - The template launch failed.\njava.lang.IllegalArgumentException: TupleTag Tag\u003ccom.google.cloud.teleport.v2.elasticsearch.templates.GCSToElasticsearch#0\u003e not found in this PCollectionTuple tuple\n\tat org.apache.beam.sdk.values.PCollectionTuple.get(PCollectionTuple.java:222)\n\tat com.google.cloud.teleport.v2.transforms.CsvConverters$LineToFailsafeJson.expand(CsvConverters.java:368)\n\tat com.google.cloud.teleport.v2.transforms.CsvConverters$LineToFailsafeJson.expand(CsvConverters.java:300)\n\tat org.apache.beam.sdk.Pipeline.applyInternal(Pipeline.java:548)\n\tat org.apache.beam.sdk.Pipeline.applyTransform(Pipeline.java:499)\n\tat org.apache.beam.sdk.values.PCollectionTuple.apply(PCollectionTuple.java:263)\n\tat

```

Do you have any clue? thanks in advance.

---

<div class="post-metadata">

**Author:** ![Goncalo\_Almeida](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/goncalo_almeida/32/117112_2.png) [@Goncalo\_Almeida](https://discuss.elastic.co/u/Goncalo_Almeida)\
**Post date:** [February 10, 2023, 11:31am UTC](https://discuss.elastic.co/t/gcstoelasticsearch-template/323834/2 "2023-02-10T11:31:12Z")

</div>

Have you found a solution for this? I am having the same error

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 10, 2023, 11:32am UTC](https://discuss.elastic.co/t/gcstoelasticsearch-template/323834/3 "2023-03-10T11:32:08Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
