A tenant does not block a sale. The agreement transfers to the buyer, and that is the part buyers price.
The rent roll is the first document anyone asks for: names, amounts, read about estoppels dates. Missing data becomes a discount.
Buyers want the tenant to confirm it in writing. Do this before you are under contract so nothing contradicts your paperwork later.
Deposits move to the new owner. Document the handoff.