Inventory Invoice Template Error

I have an invoice template that I have custom designed, to include User Defined Fields. Whenever I preview the custom Invoice when designing, I am able to open it successfully. However, whenever I raise a new invoice and want to print the invoice itself, I receive the below error.