Skip to main content
annj
August 2, 2022
Question

Error when trying to update only some of the fields using Docx from Dynamic template

  • August 2, 2022
  • 0 replies
  • 0 views

I have a template docx that has a total of 3 fields attached template docx, I am required to update only 2 of these fields: 1) doc.project.name 2) doc.project.address,  during the initial document creation. The updated template is then uploaded to SharePoint. Later, I will have to download this document from SharePoint and update the third field.

I pass in only the 2 fields into my expression rule to generate the xml. Xml generated via expression rule: <project> <name>Ary Rock</name> <address>/address> </project>

Error: freemarker.core.NonStringException: For "${...}" content: Expected a string or something automatically convertible to string (number, date or boolean), but this evaluated to a sequence+hash (wrapper: ..

[View:/cfs-file/__key/communityserver-discussions-components-files/19/2625.wordTemplateForDynamicGeneration.docx:320:240]

Goal: I would like the updated template document to have the updated fields and also show the placeholder for the third field.

[View:/cfs-file/__key/communityserver-discussions-components-files/19/wordTemplateForDynamicGenerationUpdated.docx:320:240]

Thanks in advance.