This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

Error -2146824582 While Using LabVIEW Database Connectivity Toolkit

Updated Oct 30, 2023

Reported In

Software

  • LabVIEW
  • LabVIEW 2019
  • LabVIEW 2020
  • LabVIEW 2021
  • Database Connectivity Toolkit
  • LabVIEW Database Connectivity Toolkit

Issue Details

I have three versions of LabVIEW [LabVIEW 2019, LabVIEW 2020, LabVIEW 2021], therefor there are different versions of Database Connectivity Toolkit.
When running the "Convert Database Variant to Data.vi" example on Windows 10 (64bit), with LabVIEW 2020 (64bit), I get the following error:
image.png

Error -2146824582 occurred at NI_Database_API.lvlib:DB Tools Open Connec (String).vi->NI_Database_API.lvlib:DB Tools Open Connec (Path).vi->Convert Database Variant to Data.vi
 

Solution

The issue like this might appear if the toolkits were installed after LabVIEW versions, as a result the dependences are overlapped and, in some cases, this will lead to the error we see.

Before performing the steps described below, please make sure that the internet connection is stable.
 

  1. Remove all NI software from NI Package Manager.
  2. Download LabVIEW 2019, double click on the downloaded file.
  3. On the step of selecting additional software to install, select all the necessary software that you are going to use in the future.
    • In case if you are using LabVIEW Real-Time and LabVIEW FPGA Modules, please select them from that window also to avoid issues of missing dependencies and unexpected behaviors in the future.
  4. After selecting the necessary software, in the next step you should also see a list of suggested toolkits. Make sure that the checkmark for Database Connectivity Toolkit is set.
    • You can also choose additional toolkits that you want to use.
  5. Perform an installation.
  6. Perform the same steps described above for another LabVIEW versions you need following the steps above. 

NOTE: When installing different versions of LABVIEW, make sure to do it from earliest to oldest.