<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Issue in Docx from Dynamic template</title><link>https://community.appian.com/discussions/f/general/17896/issue-in-docx-from-dynamic-template</link><description>Hello, 
 I am using DocxFromDynamitecTemplate smart service for generating the dynamic table in Docx file from given template. 
 but i am getting the only column names, data is not populating in the table. 
 Here is the xml data that i am passing in a</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Issue in Docx from Dynamic template</title><link>https://community.appian.com/thread/74386?ContentTypeID=1</link><pubDate>Wed, 27 May 2020 07:41:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0efa34e1-650f-436f-a314-0ce48d3dd6ce</guid><dc:creator>jamesp0015</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;instead of this&lt;/p&gt;
&lt;p&gt;&amp;quot;&amp;lt;info&amp;gt;&amp;quot; Some text &amp;nbsp;&amp;quot;&amp;lt;/info&amp;gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;use the below one&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;nbsp; &amp;#39;&amp;quot; &amp;amp; toHtml(Some text) &amp;amp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;&amp;#39;/&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue in Docx from Dynamic template</title><link>https://community.appian.com/thread/70515?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2019 21:11:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d06883d3-63ce-467a-84e7-c90d2323b9ef</guid><dc:creator>anupriyak0002</dc:creator><description>&lt;p&gt;If I replace the apostrophe&amp;#39;s(&amp;#39;) with &amp;amp;apos;&amp;nbsp; then i get the error:&lt;/p&gt;
&lt;p&gt;Open quote is expected for attribute &amp;quot;name&amp;quot; associated with an&amp;nbsp; element type&amp;nbsp; &amp;quot;rowvalues&amp;quot;.&lt;/p&gt;
&lt;p&gt;and if I continue with the apostrope(&amp;#39;) ,then i am getting the error:&lt;/p&gt;
&lt;p&gt;Parsing error in template &amp;quot;fr.opensagres.xdocreport.document.docx.DocxReport@7d2a84be!word/document.xml&amp;quot; in line 4, column 998:Encountered &amp;quot;&amp;lt;&amp;quot;, but was expecting:&amp;nbsp; &amp;nbsp; &amp;lt;ID&amp;gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue in Docx from Dynamic template</title><link>https://community.appian.com/thread/70511?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2019 13:47:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:917420ed-8a7b-4279-ba30-2bf4daa73ba7</guid><dc:creator>Emily Egan</dc:creator><description>&lt;p&gt;Do any of your data points contain an apostrophe or doublequote? In addition to using toHtml() you should also replace apostrophe&amp;#39;s with &amp;amp;apos; and double quotes with &amp;amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue in Docx from Dynamic template</title><link>https://community.appian.com/thread/70510?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2019 12:16:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:32d96388-c572-48ca-93b4-7008c8c10ffe</guid><dc:creator>anupriyak0002</dc:creator><description>&lt;p&gt;please tell me if you are doing some specific formating in template also.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue in Docx from Dynamic template</title><link>https://community.appian.com/thread/70509?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2019 12:14:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:82f679fb-4332-42c9-b7db-d0173b87ab81</guid><dc:creator>anupriyak0002</dc:creator><description>&lt;p&gt;Hi Siddhartha,&lt;/p&gt;
&lt;p&gt;Thanks for your help,it is working for this sample data.&lt;/p&gt;
&lt;p&gt;But when i tried it for my actual data(cannot shared as it is confidential), i m recieving this below error:&lt;/p&gt;
&lt;p&gt;freemarker.core.NonStringException: For &amp;quot;${...}&amp;quot; content: Expected a string or something automatically convertible to string (number, date or boolean), but this evaluated to a sequence+hash (wrapper: f.e.dom.NodeListModel):==&amp;gt; d.@name&amp;nbsp; [in template "fr.opensagres.xdocreport.document.docx.DocxReport@1b62c890!word/document.xml" at line 4, column 1680]The failing instruction:==&amp;gt; ${d.@name} auto-escaped&amp;nbsp; [in template "fr.opensagres.xdocreport.document.docx.DocxReport@1b62c890!word/document.xml" at line 4, column 1678]&lt;/p&gt;
&lt;p&gt;Please suggest.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue in Docx from Dynamic template</title><link>https://community.appian.com/thread/70470?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2019 22:12:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:69c32c77-dd7d-4dd8-ad9c-e7623d3c4ab0</guid><dc:creator>Siddharth</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;anupriyak0002&amp;nbsp;- Pass the below code as an expression rule to the &amp;#39;Xml Data Model&amp;#39; field in the smart service. I have attached the template and the generated document as well. Please let me know if this works.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!data: {
    {
      name: &amp;quot;John Samuael&amp;quot;,
      branch: &amp;quot;CSE&amp;quot;,
      rollNum: &amp;quot;abc&amp;quot;
    },
    {
      name: &amp;quot;Michelle Dsouza&amp;quot;,
      branch: &amp;quot;IT&amp;quot;,
      rollNum: &amp;quot;fgh&amp;quot;
    }
  },
  concat(
    &amp;quot;&amp;lt;info&amp;gt;&amp;quot;,
    a!forEach(
      items: local!data,
      expression: &amp;quot;&amp;lt;rowvalues name = &amp;quot; &amp;amp; &amp;quot;&amp;#39;&amp;quot; &amp;amp; fv!item.name &amp;amp; &amp;quot;&amp;#39;&amp;quot; &amp;amp; &amp;quot; branch= &amp;quot; &amp;amp; &amp;quot;&amp;#39;&amp;quot; &amp;amp; fv!item.branch &amp;amp; &amp;quot;&amp;#39;&amp;quot; &amp;amp; &amp;quot; rollNum= &amp;quot; &amp;amp; &amp;quot;&amp;#39;&amp;quot; &amp;amp; fv!item.rollNum &amp;amp; &amp;quot;&amp;#39;&amp;quot; &amp;amp; &amp;quot; /&amp;gt;&amp;quot;
    ),
    &amp;quot;&amp;lt;/info&amp;gt;&amp;quot;
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Template :&amp;nbsp;&amp;nbsp;&lt;a href="https://community.appian.com/cfs-file/__key/communityserver-discussions-components-files/11/0451.Template.docx"&gt;community.appian.com/.../0451.Template.docx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Generated File :&amp;nbsp;&lt;a href="https://community.appian.com/cfs-file/__key/communityserver-discussions-components-files/11/6708.Generated-File.docx"&gt;community.appian.com/.../6708.Generated-File.docx&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>