If you are merging a child object or related list item, you need to make sure field is merged inside a table so the rows repeat themselves. Review this article for more detail if needed. If you already did this and not sure why you are getting an error message and/or where it is coming from within your template, here are some helpful steps:

  1. It is best to find out which merge field is causing the error message and then you can better figure out how to resolve it.
  2. The best way to troubleshoot is by creating a blank new google doc (do not clone the other template), give it a simple non merge field title and update sharing settings. Make sure to use the same google doc sharing settings, same google drive, and same Salesforce user when testing with this new template.  Then with this new blank google doc, replace this ID in document action and then test document generation to make sure no error message.
  3. Then copy/paste one section at a time into your new template from the old template. After adding each section, test document generation to see if error happens or not. Once you get error message and know from which section or table, then you can try to isolate which error message out of that section is causing it.
  4. If you complete copying section by section of new template and you did not get an error message then there may have been some hidden formatting in that old template (this can happen if you upload google doc template from an existing word doc) and it should now be resolved.
  5. If you need more help to troubleshoot, you can purchase some support time and we will help you resolve. If we find it was an issue with our app or documentation, we will refund the money back to you.