This error can happen when clicking a button to generate document or when triggering an automation process.
“Error while creating new document. Error message: Read timed out”
- Check if your org has hit its daily API limit.
- You are trying to merge a large amount of Salesforce data from a Google Doc template into a generated document from a particular record. You may also have too many images or actions being processed with Document Generation, causing it to time out.
- You may be using the Conditional Section merge feature and you have the conditional section end merge field at bottom of your template.
- You may have some hidden formatting within your template causing it to time out. If you converted a Word document into a Google document there may be some formatting or tables that are not visible. You can test this by creating a brand new Google document (do not copy the original), then rebuild the template by adding the same merge fields and related list table from the original template. Once this is done, copy/paste the new Google document ID into the Document Action that was returning an error. Generate a document with the same record you used before with original template ID, to see if the same timeout error happens. If the error is resolved, then you know an issue with hidden formatting and you can use the new template that has no hidden formatting.