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

Certified Associate Developer

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: ..

2625.wordTemplateForDynamicGeneration.docx

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

wordTemplateForDynamicGenerationUpdated.docx

Thanks in advance.

  Discussion posts and replies are publicly visible