Error 1 on Dequeue or Enqueue Element in LabVIEW

Updated Oct 23, 2018

Reported In


  • LabVIEW

Issue Details

I am working with queues in LabVIEW, and they work as expected. However, I get an error when stopping the program. This error 1 states that an input parameter is invalid:

Error 1 occurred at Dequeue Element in Untitled 1
Possible reason(s):
LabVIEW: An input parameter is invalid.

The queue works fine during the code. Why is this coming up?


This error can come up when trying to access a queue that has already been released using the Release Queue function. Depending on your intention, there are a few ways to handle this code.
  • Some users use this as a way to stop multiple while loops by forcing an error to occur. If this is intended, you can clear or ignore this error at the end of your program.
  • ​If you are not expecting the queue to have been released, use some LabVIEW debugging tools to find where your queue is released in your code. Then, reorganize your code so that you only access queues before releasing them.


Not Helpful