If you received a 1099-B that should not be taxable, you still need to enter it in your return. The IRS will try and match the sales proceeds amount to their copy of the form.
Enter the amount of the sales proceeds and then enter the same amount for the purchase price (basis). This reports the 1099-B, but nets to zero for the gain/loss on the return.