LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Handling multiple clusters with insert data VI

Solved!
Go to solution

Hi all!

 

I'm very new to labview and i'm trying to handle multiple clusters with different value types, writing them using the insert data VI into my database table this way:

 

Jojoee_1-1731603818660.png

 

 

 

But i'm missing something because i'm getting this error

 

Jojoee_0-1731603713782.png

 

 

i'm sure the number of columns and parameters are correct because before this FOR loop i had separate subVI insert data for each bundle but i wanted to simplified the architecture for more inputs.

 

Can you guys help me?

Thank you so much

0 Kudos
Message 1 of 4
(86 Views)

You might need to change your column names.  Some of those may be reserved keywords. 

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
0 Kudos
Message 2 of 4
(73 Views)
Solution
Accepted by topic author Jojoee

Look really close at your data.  You're not passing in a cluster of 3 elements, you're passing in a cluster of 1 element containing a cluster of 3 elements:

 

Kyle97330_1-1731628526175.png

Replace the "build cluster array" node with just a "build array" instead, and that should do it.

Message 3 of 4
(37 Views)

That was it! I thought the cluster array was the uculprit but i didn't know how to fix it.

 

Thanks a lot!

0 Kudos
Message 4 of 4
(20 Views)