Mostly this error will occur due to invoice template problems. To resolve this issue, you will need to follow the procedure shown in the below steps.

Go to Lists, Templates in case a template is inactive.
Select a template and click Open Form.
Repeat until a template has an error then close the form.
In the Templates window, select […]