# Write data to Influxdb 2.0 with Node Red- Type Error

**URL:** <https://discourse.nodered.org/t/write-data-to-influxdb-2-0-with-node-red-type-error/28950>\
**Category:** General\
**Created:** [25 June 2020 08:38 UTC](https://discourse.nodered.org/t/write-data-to-influxdb-2-0-with-node-red-type-error/28950 "2020-06-25T08:38:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![neelanjan](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@neelanjan](https://discourse.nodered.org/u/neelanjan)\
**Post date:** [25 June 2020 08:38 UTC](https://discourse.nodered.org/t/write-data-to-influxdb-2-0-with-node-red-type-error/28950/1 "2020-06-25T08:38:59Z")

</div>

Hi,

I have been using Nodered to write data influxdb 1.7 and thats running perfectly.  
Now, I am trying to write the same data using the same format that used with Influxdb 1.7, I am getting Type Error :-

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/5/855779e47742f9da58a815071b619e835d69bb60.png)

On the Influxdb 2.0 part I have created organisation,bucket,token and configured the test node accordingly.

Here is the format I have used to write data to Influxdb 1.7.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/f/7fd0d8812220982f11da37ff7667bd278e3b7e6e.png)

Please help to solve the issue.  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [25 June 2020 08:53 UTC](https://discourse.nodered.org/t/write-data-to-influxdb-2-0-with-node-red-type-error/28950/2 "2020-06-25T08:53:02Z")

</div>

I don't think the influx nodes support influxdb 2 yet do they? Or have I missed an announcement?

---

<div class="post-metadata">

**Author:** ![neelanjan](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@neelanjan](https://discourse.nodered.org/u/neelanjan)\
**Post date:** [25 June 2020 09:11 UTC](https://discourse.nodered.org/t/write-data-to-influxdb-2-0-with-node-red-type-error/28950/3 "2020-06-25T09:11:55Z")

</div>

Yes . Node for Influxdb 2 is there in node red.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/8/f89ac78f8d930bbad12f3f297862ea86b07bb34b.png)

Can you please check.  
and I have used the write node to write data to influxdb 2.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/d/7d8db3ae106dc7315ab44a541376d4b7d518a8bf.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [25 June 2020 09:56 UTC](https://discourse.nodered.org/t/write-data-to-influxdb-2-0-with-node-red-type-error/28950/4 "2020-06-25T09:56:02Z")

</div>

In the flow image you posted it appears to be using the usual one node-red-contrib-influxdb, not the one you show in the palette.

Looking at that node, which I presume is [https://github.com/stackhero-io/node-red-contrib-stackhero-influxdb-v2](https://github.com/stackhero-io/node-red-contrib-stackhero-influxdb-v2), the data format it needs is different. Have you configured your payload as required by that node? If you think so then feed it into a debug node and show it to us.

---

<div class="post-metadata">

**Author:** ![neelanjan](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@neelanjan](https://discourse.nodered.org/u/neelanjan)\
**Post date:** [25 June 2020 11:17 UTC](https://discourse.nodered.org/t/write-data-to-influxdb-2-0-with-node-red-type-error/28950/5 "2020-06-25T11:17:50Z")

</div>

Hi ,  
This the input payload to ......stackhero-influxdb-V2....Can you please tell me what change is required for the same.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/3/e3a57aedd7d9924faf45f2bf621b8c6c2521a19c.png)  
The right side msg.payload the data format.

Please help.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [25 June 2020 12:40 UTC](https://discourse.nodered.org/t/write-data-to-influxdb-2-0-with-node-red-type-error/28950/6 "2020-06-25T12:40:22Z")

</div>

Does that match what it says in the node's readme? I have not used it that is all I have to go on. Are you sure you need to use V2? It is still very new so finding anyone with experience may be difficult.

---

<div class="post-metadata">

**Author:** ![neelanjan](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@neelanjan](https://discourse.nodered.org/u/neelanjan)\
**Post date:** [25 June 2020 13:14 UTC](https://discourse.nodered.org/t/write-data-to-influxdb-2-0-with-node-red-type-error/28950/7 "2020-06-25T13:14:30Z")

</div>

I have changed the payload accordingly.....and it is working. Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [24 August 2020 13:14 UTC](https://discourse.nodered.org/t/write-data-to-influxdb-2-0-with-node-red-type-error/28950/8 "2020-08-24T13:14:44Z")

</div>

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