# Google BigQuery DB Writer Error - Unparseable query parameter \`\` in type 'TYPE\_FLOAT64', Bad double value: null value: 'null'

**URL:** <https://forum.knime.com/t/google-bigquery-db-writer-error-unparseable-query-parameter-in-type-type-float64-bad-double-value-null-value-null/29867>\
**Category:** KNIME Analytics Platform\
**Tags:** database\
**Created:** [January 11, 2021, 3:19am UTC](https://forum.knime.com/t/google-bigquery-db-writer-error-unparseable-query-parameter-in-type-type-float64-bad-double-value-null-value-null/29867 "2021-01-11T03:19:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![alabamian2](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/a8b319/32.png) [@alabamian2](https://forum.knime.com/u/alabamian2)\
**Post date:** [January 11, 2021, 3:19am UTC](https://forum.knime.com/t/google-bigquery-db-writer-error-unparseable-query-parameter-in-type-type-float64-bad-double-value-null-value-null/29867/1 "2021-01-11T03:19:42Z")

</div>

Hi all, hope you all are doing well and staying safe and healthy.

I’m trying to upload data into Google BigQuery using DB Writer node and I’m getting this error.

Execute failed: Error while adding row #(Row0), reason:[Simba]BigQueryJDBCDriver Error executing query job. Message: Unparseable query parameter `` in type ‘TYPE\_FLOAT64’, Bad double value: null value: ‘null’

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/e/4/e47e32baf86c0a0a974298c54f51be0789324e6e.png)

I’m now testing with small sample set that I can QAd manually and visually before uploading but still getting errors. The connection is fine because I can query the database/tables. I just cannot upload it.

I then use DB Reader to read the same table then in turn use DB Writer to write back the data from the same table and I get this error.

![image](https://forum-cdn.knime.com/uploads/default/original/3X/e/0/e04fa88193fcf5fe9e0372a80e558934d9ef6f19.png)

Has anyone had the same issue? I’ve been googling and searching [knime.com](http://knime.com) but no luck. Any help or kind guidance is greatly appreciated.

And BigQuery’s auto-format-detection is extremely hard to work with. It only looks at first 100 records at the most so it’s just not right. How do you work around that? I manually created the schema when creating the table but then getting this above error. I found this and will give it a try too. [https://pypi.org/project/bigquery-schema-generator/](https://pypi.org/project/bigquery-schema-generator/)

Thank you kindly in advance.

---

<div class="post-metadata">

**Author:** ![tobias.koetter](https://forum-cdn.knime.com/user_avatar/forum.knime.com/tobias.koetter/32/56844_2.png) [@tobias.koetter](https://forum.knime.com/u/tobias.koetter)\
**Post date:** [January 11, 2021, 8:22am UTC](https://forum.knime.com/t/google-bigquery-db-writer-error-unparseable-query-parameter-in-type-type-float64-bad-double-value-null-value-null/29867/2 "2021-01-11T08:22:50Z")

</div>

Hello,  
unfortunately this is a long know but in the Simba JDBC driver provided by Google. It does not support the usage of NULL values. For more details please see this [post](https://forum.knime.com/t/google-big-query-loading/29127/8).  
If you only want to insert data into BigQuery I suggest you use the [DB Loader](https://kni.me/n/hp8L4I_m6lJfldj5) node which uses another API and is much faster.  
Bye  
Tobias

---

<div class="post-metadata">

**Author:** ![alabamian2](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/a8b319/32.png) [@alabamian2](https://forum.knime.com/u/alabamian2)\
**Post date:** [January 11, 2021, 1:33pm UTC](https://forum.knime.com/t/google-bigquery-db-writer-error-unparseable-query-parameter-in-type-type-float64-bad-double-value-null-value-null/29867/3 "2021-01-11T13:33:41Z")

</div>

Hi @tobias.koetter,  
Thank you for your reply and info. Got it. I started with DB Loader and had so many issues with data types with BQ auto schema detect. I manually uploaded schema several times and I think I finally got it. Thank you so much again, @tobias.koetter.

Is there anything else I should be aware of when interacting with BigQuery using KNIME?

BQ doesn’t have primary key and when I run KNIME, DB Loader turns green, but for whatever reason if I run it again, it’s going to insert the same data set. What’s the best practice around that? Is there anything on the KNIME side to keep track of it?

BQ doesn’t have insert timestamp either…maybe create a process to keep track of each batch upload and append that col in BQ? Can I create a permanent table in KNIME, or do I use Excel or something to use as a local table?

Thank you so much again and your support!! Stay safe.

---

<div class="post-metadata">

**Author:** ![tobias.koetter](https://forum-cdn.knime.com/user_avatar/forum.knime.com/tobias.koetter/32/56844_2.png) [@tobias.koetter](https://forum.knime.com/u/tobias.koetter)\
**Post date:** [February 4, 2021, 5:04pm UTC](https://forum.knime.com/t/google-bigquery-db-writer-error-unparseable-query-parameter-in-type-type-float64-bad-double-value-null-value-null/29867/4 "2021-02-04T17:04:12Z")

</div>

Hi alabamian2,  
sorry for the late reply. If you use only a single workflow that is executed locally you can create write a CSV File in the [workflow data area](https://docs.knime.com/latest/analytics_platform_file_handling_guide/index.html#relative-to) or if running on the server using the [Relative to-\> Current Workflow](https://docs.knime.com/latest/analytics_platform_file_handling_guide/index.html#relative-to) file system where you always append the latest running id/timestamp or whatever is available to tell you which rows have already been processed. You could then use the [CSV Reader](https://kni.me/n/kquSunBXI2Vo6TJy) node to read the file, [sort](https://kni.me/n/gwwIZ5c5EYsJErci) it afterwards in descending order to get the latest entry which you then convert to a variable using the [Table Row to Variable](https://kni.me/n/fI6e-FYDCsugy9m_) node which in turn can then be used to filter the data before writing to BigQuery.  
Bye  
Tobias

---

<div class="post-metadata">

**Author:** ![alabamian2](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/a8b319/32.png) [@alabamian2](https://forum.knime.com/u/alabamian2)\
**Post date:** [February 4, 2021, 5:17pm UTC](https://forum.knime.com/t/google-bigquery-db-writer-error-unparseable-query-parameter-in-type-type-float64-bad-double-value-null-value-null/29867/5 "2021-02-04T17:17:51Z")

</div>

Thank you, @tobias.koetter. I’ll try building out and incorporating your suggestion.  
Thank you again.

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [February 11, 2021, 5:17pm UTC](https://forum.knime.com/t/google-bigquery-db-writer-error-unparseable-query-parameter-in-type-type-float64-bad-double-value-null-value-null/29867/6 "2021-02-11T17:17:53Z")

</div>

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