If you fail your undergraduate dissertation, you can still graduate as long as you have enough credits, although this may be with an ordinary degree. However, if you fail your master's dissertation or PhD thesis resubmission, you will not be allowed to graduate. The topic of failure is quite daunting for most students.