Solution:

  • You may see this error when using batch automation with the app or if you are testing the process one record at a time and the document is getting generated though when selecting mutliple records and it doesn’t work. And will need to check automation configuration.
  • Another reason you may see error is if you have updated package version to latest from AppExchange and now seeing this error is using Apex automation method. You can resolve by having the web service that was causing error run right after using the method: rsdoc.DocumentManager.generateDocument. And run your web service as a future method for it to work.