Several issues may cause permission denied:
As a starting point check these causes as possible solutions:
- The user doesn't have permission to the folder
- The file path of the document folder is too long (greater than 255 characters)
- The document template is in use and is locked
- The document or document template is marked as "blocked"
- The document path is not on a trusted network
- Has the job document file path been moved recently?