I have an HTML template written by a former employee of our organization. When I use an order placed from a household, the template renders perfectly. When I use an order with a school instead of a household, it fails with a message that says "An error occurred while rendering the template. Object reference not set to an instance of an object."
Anyone have ideas why this is happening?
Hi Kirsti,
I've encountered this issue before when I've tried to return a piece of information that just doesn't exist for some orders, and when that happens I've needed to build in logic in the template to account for nulls. Aside from household instead of school, is there something else that might be different between the orders? For example, different product types in the orders, or the household has an email address but the school does not?