ScriptError: Authorization is required to perform that action

If you get this error try one of the following solutions:

  1. Clear your browser's cache & cookies. If your using chrome follow these steps:
    • On your computer, open Chrome.
    • At the top right, click the menu icon (with 3 dots on top of each other)
      • Click More tools
      • Clear browsing data.
      • At the top, choose a time range. To delete everything, select All time.
      • Next to "Cookies and other site data" and "Cached images and files," check the boxes.
      • Click Clear data.
  2. Re-install the add-on by:
    • Remove the addon from Google Docs -> Add-ons->Manage add-ons... -> Mail Merge -> Manage-> Remove
    • Install addon from Google Docs-> Add-ons->Get add-lns-> Search 'Mail Merge'-> Click 'Free' icon-> Follow steps
  3. Make a copy of your document template and try again from that copy.
  4. Try Chrome in Incognito mode or a different browser (Ctrl+Shift+N)

Why did this happen and how can I prevent it from happening again?

This happens when you switch to different Google accounts on the same browser. For example you may switch from name@gmail.com to name@company.com

To avoid this create a Chrome Browser user/profile for every account. Check the link below for more information on how to do this:

https://support.google.com/chrome/answer/2364824