From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Database Variant to Data Bug

Solved!
Go to solution

Hi all, 

I ran into something odd today while working with the Database Variant to Data function. When an empty 1D array of variants is wired into the Database Variant to Data function it returns an error. However, when an empty 2D array of variants is wired into the Database Variant to Data function it does not return an error.

 

I've attached a simple example demonstrating the inconsistency. My initial thought was that they should either both return an error or neither return an error. I discovered this in LabView 2015, and verified the same behavior in LabView 2016.

0 Kudos
Message 1 of 5
(3,141 Views)

I will be trying to recreate this and will report it if I see a similar response.

 

Eric Wang

Applications Engineering

0 Kudos
Message 2 of 5
(3,053 Views)

Is this impeding your progress? I would just check for empty arrays before passing it through the function.

 

 

0 Kudos
Message 3 of 5
(3,043 Views)

Hi Eric,

Thank you for looking into this issue. This isn't a huge problem for me. I switched over to checking for empty arrays, like you suggested, but it seems like something that should be consistent on error generation for any size of empty varaints. 

0 Kudos
Message 4 of 5
(3,013 Views)
Solution
Accepted by thomask19

Thanks for bringing this to our attention! I have gone ahead and filed a Corrective Action Report. The number for this is 618979 if you would like to track it.

 

Eric Wang

Applications Engineering

 

Message 5 of 5
(2,990 Views)