Add error handling with an unset template set on a DA