Document Generator - Error occured
AnsweredSince a few days I have a problem with the document generator in a solution.
I get the error message "Failed to execute action "Generate document": Error occurred while trying to evaluate expressions in Template file: [object Object]"
Nothing has been changed in the solution, on the SharePoint Site or in the Template.
What could cause this error?
-
Hi Julian
This can have several reasons, but it's definitely something about a wrong placeholder in the document template.
Sometimes some small changes on columns needs to be handled different in document template - e.g. switching from single to multiple allowed values. Or removing the required input setting for the field and now empty values will appear...Can you give us some more information about...
the template document (or part of it, where placeholders are)
the used columns from the list0 -
It doesn't even work with a Test Template that just contains [[Title]] and nothing else.
It's not working on the DEV SharePoint Site nor on the Live Site where it's deployed to.
All features are on newest version.
Could it be some permission or security settings on the Sharepoint Site?
0 -
Hmm, then it's probably about the item's data.
Can you post here a screenshot of the configured Document Generation action?0 -
0
-
The action configuration looks good.
Then it's probably something about permissions.
Does the executing user has at least Read permission on the TestTemplate.docx file and at lest Read permission on the item which is referenced by Item Id?0 -
I found the problem.
Someone renamed the list on the SharePoint Site, but not in the Solution in the Solution Studio (The display name).
This somehow caused this error.After changing the name of the list back to the original name the document generation is working flawlessly again.
0 -
Strange effect - maybe changing the List or library property in the Generate document action and resave the action would solve the problem as well
0
Please sign in to leave a comment.
Comments
7 comments