Using template files in dailies capture templates

Could you run M-x toggle-debug-on-error to produce a stacktrace, this may help see where the error is coming from.