# A Google Bigquery output plugin error

**URL:** https://discuss.elastic.co/t/a-google-bigquery-output-plugin-error/321021
**Category:** Logstash
**Created:** [December 12, 2022, 11:22am UTC](https://discuss.elastic.co/t/a-google-bigquery-output-plugin-error/321021 "2022-12-12T11:22:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![dalaopo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dalaopo/32/114400_2.png) [@dalaopo](https://discuss.elastic.co/u/dalaopo)
#### Post date: [December 12, 2022, 11:22am UTC](https://discuss.elastic.co/t/a-google-bigquery-output-plugin-error/321021/1 "2022-12-12T11:22:19Z")

</div>

Hello!  
The old field data I read from Kafka is object，It seems that there is no way to identify the setting record

This is my first configuration

```auto
csv_schema => "old:STRING,...."

```

And first error

```auto
[2022-12-12T19:06:04,154][WARN][logstash.outputs.googlebigquery][main] Error while inserting {:key=>0, :location=>"old", :message=>"This field: old is not a record.", :reason=>"invalid"}
[2022-12-12T19:06:04,166][INFO][logstash.outputs.googlebigquery][main] Problem data is being stored in: /opt/module/bqerror/logstash_test_2022_12-1670843164.log

```

And I changed it to record

```auto
csv_schema => "old:RECORD,...."

```

It returned me this error again

[image]

```auto
[ERROR][logstash.javapipeline][main] Pipeline error {:pipeline_id=>"main", :exception=>java.lang.IllegalArgumentException: The RECORD field must have at least one sub-field, :backtrace=>["com.google.cloud.bigquery.Field$Builder.setType(com/google/cloud/bigquery/Field.java:132)"

```

The value in old may be one or more, which is uncertain。  
what should i do？

---

<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: [January 9, 2023, 11:22am UTC](https://discuss.elastic.co/t/a-google-bigquery-output-plugin-error/321021/2 "2023-01-09T11:22:29Z")

</div>

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