Sometimes a VI can stay on the clipboard after a copy-paste operation. When this happens, the build will fail. Open the hierarchy window and you will see if there is a VI in the clipboard. To clear the clipboard, just select a piece of text and copy it to the clipboard.
Also if you have designed a VI that stay running with its panel closed, it will prevent the build. Again the hierarchy window will expose the culprit.