Internal error

Am I doing something wrong?
Clicking on the invoice gives me this screen:

Does clicking on all invoices give you that error or just that one invoice ?
Purchase or Sales Invoice ?

Just found the reason for the internal error.
In Email-sjabloon reference was spelled as {{reference} in stead of {{reference}}.
So adding } did the trick.

reference

Thanks for your reply!