Index "name" is in use and cannot be closed (Error 2200)

This error is generated by SQL engine when an attempt is made to close an index tag while that tag is in use. The error can occur if you attempt to delete a tag while it is in use such as from a UDF() called by a SELECT - SQL Command.