When preparing an ester, why would you get a poor yield?

When preparing an ester, why would you get a poor yield?