Can't cancel any selling invoice, Server error appears!

Hi I’m facing this problem after upgrading to the new version of ERPNEXT. Is there any way to solve the problem?