# Writing(Array Data) to OPC-UA server by using OPC-UA-IIOT node client

**URL:** <https://discourse.nodered.org/t/writing-array-data-to-opc-ua-server-by-using-opc-ua-iiot-node-client/67051>\
**Category:** General\
**Created:** [29 August 2022 03:54 UTC](https://discourse.nodered.org/t/writing-array-data-to-opc-ua-server-by-using-opc-ua-iiot-node-client/67051 "2022-08-29T03:54:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ferdi84](https://avatars.discourse-cdn.com/v4/letter/f/d2c977/32.png) [@Ferdi84](https://discourse.nodered.org/u/Ferdi84)\
**Post date:** [29 August 2022 03:54 UTC](https://discourse.nodered.org/t/writing-array-data-to-opc-ua-server-by-using-opc-ua-iiot-node-client/67051/1 "2022-08-29T03:54:20Z")

</div>

[Array\_Write\_IIOT.json](https://discourse.nodered.org/uploads/short-url/76su7f4ky6eZ2WOlylW5gHZoWfJ.json) (3.2 KB)

I am trying to write array of data through IIOT opc-UA client to OPC-UA PLC server.  
i could able to read/write single integer as well as reading of array of data too. but while writing array of data to OPC-UA server , its keeps on return with error "BadTypeMimatch" - Data type is int16, with array dimension but i m not sure how to provide array dimension value.  
Is there a specific format to write array of data via this node

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

---

<div class="post-metadata">

**Author:** ![mikakaraila](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mikakaraila/32/37496_2.png) [@mikakaraila](https://discourse.nodered.org/u/mikakaraila)\
**Post date:** [1 September 2022 14:46 UTC](https://discourse.nodered.org/t/writing-array-data-to-opc-ua-server-by-using-opc-ua-iiot-node-client/67051/2 "2022-09-01T14:46:45Z")

</div>

Look examples OPCUA-TEST-NODES.json and this specific tab & area:

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

---

<div class="post-metadata">

**Author:** ![Ferdi84](https://avatars.discourse-cdn.com/v4/letter/f/d2c977/32.png) [@Ferdi84](https://discourse.nodered.org/u/Ferdi84)\
**Post date:** [2 September 2022 05:03 UTC](https://discourse.nodered.org/t/writing-array-data-to-opc-ua-server-by-using-opc-ua-iiot-node-client/67051/3 "2022-09-02T05:03:42Z")

</div>

Hi  
thanks for the reply , in the IIOT node we dont have option for Int16 Array as datatype , that where i have an issue

---

<div class="post-metadata">

**Author:** ![mikakaraila](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mikakaraila/32/37496_2.png) [@mikakaraila](https://discourse.nodered.org/u/mikakaraila)\
**Post date:** [2 September 2022 06:39 UTC](https://discourse.nodered.org/t/writing-array-data-to-opc-ua-server-by-using-opc-ua-iiot-node-client/67051/4 "2022-09-02T06:39:07Z")

</div>

Test with node-red-contrib-opcua

---

<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:** [1 November 2022 06:39 UTC](https://discourse.nodered.org/t/writing-array-data-to-opc-ua-server-by-using-opc-ua-iiot-node-client/67051/5 "2022-11-01T06:39:26Z")

</div>

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