Error: NS #287 lcaErrNsLmobjInUse

Issue

The specified LonMarkObject is in use, and at least one of its member network variables is bound.

Product Line

TAC Vista

Environment

LonMaker
NL220
Vista
LNS

Cause

This error may be thrown if you use the Remove or RemoveByIndex methods to delete a LonMarkObject with the lcaLonMarkObjectRemoveNVs (1) option set as the removalFlags element, and that LonMarkObject contains bound network variables.

Resolution

The bound network variables must be disconnected before the LonMarkObject can be deleted. You can disconnect the network variables by specifying the lcaLonMarkObjectRemoveAndDisconnectNVs (3) option as the removalFlags element when you call the Remove or RemoveByIndex methods