Overview
You may come across this error messge "Failed Generating" when you generate a document template.
What it relates to
This error message relates to one of the merge field used in the document template is incorrect.
Solution
A solution for this would be to delete a few of the merge field and reupload the document template until the template generates, this will narrow it down what merge field in the template is incorrect.