Error -2147467259 When Writing Map Collection to Shared Variable in LabVIEW

Updated Jun 28, 2024

Issue Details

I am writing a map collection into a shared variable in LabVIEW and get the following error:

Unspecified error -2147467259.

Shared Variable in objSequencer.lvclass:Transmit status data.vi->objSequencer.lvclass:Action Loop.vi->objSequencer.lvclass:Run Loops.vi->Main.vi<APPEND>
This error or warning occurred while writing the following Shared Variable:
[VARIABLE HERE]


 

Solution

A bug has been reported related to using variant data type with shared variables. The workaround is the use Flatten to String or Flatten to XML and Unflatten to String and pass the string/xml through the shared variable instead.