04-25-2025 08:43 AM
As seen in the snippet, Im literally feeding the column head list to the insert data functoin... Please reveal to me what I'm not comprehending. Thanks in advance 🙂
04-25-2025 10:59 AM
More than likely, it's not Labview being silly but rather the programmer. 😁
Error 1 is more of a general error that indicates a problem with the parameters or columns. Obviously, you are giving it 21 columns of data but there may be something wrong with one of those columns. Could be the wrong datatype, could be a permission issue. Do you have the correct ODBC driver? Can you verify that your connection to the database is being properly established?
04-25-2025 11:20 AM - edited 04-25-2025 11:51 AM
Couple of recommendations:
04-27-2025 01:07 AM - edited 04-27-2025 01:09 AM
TLDR: check the size of cluster that the conversion function outputs.
Your specific issue is likely with the data itself. You have an array which you convert to a cluster, because that's the data type that the insert VI expects. Clusters must have a fixed number of elements, but LV can't know how many on its own (since array sizes can change at run time), so you have to right click the conversion function and open the dialog to select the number of elements (21, in your case). I'm guessing you didn't do it, because it's easy to miss. The general idea behind this is that you already have a cluster which matches the structure of the table, not that you convert an array to be a cluster.
Other than that, I would agree with the other comments made.