# Using Node-RED to transfer data from InfluxDB 1.7 to 2.3, but receiving ENOBUFS error when dataset is too large

**URL:** <https://discourse.nodered.org/t/using-node-red-to-transfer-data-from-influxdb-1-7-to-2-3-but-receiving-enobufs-error-when-dataset-is-too-large/65532>\
**Category:** General\
**Created:** [24 July 2022 14:19 UTC](https://discourse.nodered.org/t/using-node-red-to-transfer-data-from-influxdb-1-7-to-2-3-but-receiving-enobufs-error-when-dataset-is-too-large/65532 "2022-07-24T14:19:48Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![grant1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/grant1/32/49890_2.png) [@grant1](https://discourse.nodered.org/u/grant1)\
**Post date:** [24 July 2022 18:23 UTC](https://discourse.nodered.org/t/using-node-red-to-transfer-data-from-influxdb-1-7-to-2-3-but-receiving-enobufs-error-when-dataset-is-too-large/65532/7 "2022-07-24T18:23:46Z")

</div>

I had not realized I was writing the values one at a time until you pointed that out. Thanks.

I removed the split node and started by first examining the output from the Influx 1.7 query. I can see it is an array with 21540 objects, with each object being:

`payload[*].time` is the timestamp of the value  
and  
`payload[*].last` is the value  
_(pardon the use of the `*`...it is meant to indicate all of the 21540 values in the array)_

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/9/b9fe113d0319fb5ca5470c117e19ae9b9f9611ee.png)

And the Influx batch node format requires me to simply insert these two values here:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/b/4b8f746cf6391538f1b9c69a38cba96e10de5e05.png)

How does one convert this whole array so that the function node can take the values from payload.last and payload.time? I tried some JSONata expressions (in a change node, before the function node) but nothing worked.

---

_[View the full topic](https://discourse.nodered.org/t/using-node-red-to-transfer-data-from-influxdb-1-7-to-2-3-but-receiving-enobufs-error-when-dataset-is-too-large/65532)._
