Error 1527 When Running Test Using the LabVIEW Unit Test Framework from CLI

Updated Apr 19, 2019

Reported In


  • LabVIEW
  • LabVIEW Unit Test Framework Toolkit

Issue Details

I am automatizing a LabVIEW test process using the NI LabVIEW Unit Test Framework toolkit. When I attempt to run the test from CLI (Command Line Interface) I get the following error:


Error 1527 occurred at an unidentified location


Possible reason(s):


LabVIEW: (Hex 0x5F7) Attempted to read flattened data of a LabVIEW class that is not currently loaded into LabVIEW.


To avoid this error you have to load the class(es) into memory before running the test, for this you have to manually open the project containing the class(es). However, this is not an optimal solution if you want to have an automatized process.


To have an automatic process you can create a wrapper VI that calls the class(es) and runs the test using the Run Test from Project VI, and then, run the VI from CLI. This will load both, the class(es) and the test into the same memory allocation preventing the above error.


Section RunVI of Predefined Command Line Operations , explains how to call a VI from the CLI and the conditions this VI must meet. Through the input terminal we pass the parameters of the VI as an array, and the output terminals provide information about any error occurred during execution.


Attached to this article you will find an example of a wrapper VI used to load the class(es) into memory and call the test. To execute this VI from CLI, use the following syntax:


LabVIEWCLI -OperationName RunVI -VIPath <VI path> <project path> <report path>


Remember to add all the classes used in the test into the wrapper VI.

Additional Information

By the time this article was published, the behavior described had already been reported as a bug in LabVIEW under CAR (Corrective Action Request) # 466818.