Online documentation - WebsydianExpress v3.0 |
Sometimes a business process can return a page that contains the error message [Unable to open Document Template in function "..\html\MyTemplate.HTM" in function "MyFunction"].
See below for reasons to this error and how to resolve it.
This error comes in three different variations:
This will almost always be because the template has not been generated - or has not been moved to the correct folder.
This can typically happen if the PageGenerator does not inherit from PageGeneratorForProcess or if the PageGenerator also inherits from a WSYBASE/WSYUTIL pattern.
The reason is that the option "WSYD Read external path", which is set to "No" for the PageGeneratorForProcess, has been overwritten by "Yes" from another pattern.
This will typically occur if a suffix have been defined for the current presentation - but not all templates used by the process have been copied.
This will typically occur for templates used by either error pages or dynamically loaded drop down generators.
Generate the template if it has not already been.
Copy the template to the correct folder.
Ensure that the PageGenerator does inherit from PageGeneratorForProcess.
Set the option "WSYD Read external path" to "No" for the PageGenerator.
Copy the file to a file with the specified filename.