DocX from dynamic template Smart Service

Certified Associate Developer

I am trying to use the DOCX from dynamix template smart service

"<dynamic>
<caseNumber>U-123</caseNumber>
<caseOpenDate>9/23/2024</caseOpenDate>
<fbiLocation>Texas</fbiLocation>

<Today>May 30, 2025</Today>
<fbiPhone>(123) 456-7895</fbiPhone>
<fbiEmail>test@gmail.com</fbiEmail>
<fbiRole>Chris Hustle</fbiRole>
<SItable Subject='Jeff Gates' DOB='2/11/1982' SSN='' />
<SItable Subject='Aron Jones' DOB='6/22/2005' SSN='' />
<SItable Subject='Chris H'stle' DOB='' SSN='' />
<allegations></allegations>
</dynamic>"


However, I'm encountering the following error due to the apostrophe in the Subject attribute:

Element type "SItable" must be followed by either attribute specifications, ">" or "/>".

The issue is caused by the unescaped apostrophe (') in the Subject attribute (Chris H'stle). Since the user requires the apostrophe to appear in the document, I cannot remove or replace it.
Let me know if there is any other way to achieve this document having the apostrophe 

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    Hi Shubham,

    Sorry, this is not working. I'm facing the following error:

    "Syntax error in template ""fr.opensagres.xdocreport.document.docx.DocxReport@5b07acbb!word/document.xml"" in line 4, column 5314:" & fn!char(10) & "Encountered ""<"", but was expecting one of these patterns:" & fn!char(10) & " <STRING_LITERAL>" & fn!char(10) & " <RAW_STRING>" & fn!char(10) & " ""false""" & fn!char(10) & " ""true""" & fn!char(10) & " <INTEGER>" & fn!char(10) & " <DECIMAL>" & fn!char(10) & " "".""" & fn!char(10) & " ""+""" & fn!char(10) & " ""-""" & fn!char(10) & " ""!""" & fn!char(10) & " ""[""" & fn!char(10) & " ""(""" & fn!char(10) & " ""{""" & fn!char(10) & " <ID>"

Reply
  • 0
    Certified Associate Developer

    Hi Shubham,

    Sorry, this is not working. I'm facing the following error:

    "Syntax error in template ""fr.opensagres.xdocreport.document.docx.DocxReport@5b07acbb!word/document.xml"" in line 4, column 5314:" & fn!char(10) & "Encountered ""<"", but was expecting one of these patterns:" & fn!char(10) & " <STRING_LITERAL>" & fn!char(10) & " <RAW_STRING>" & fn!char(10) & " ""false""" & fn!char(10) & " ""true""" & fn!char(10) & " <INTEGER>" & fn!char(10) & " <DECIMAL>" & fn!char(10) & " "".""" & fn!char(10) & " ""+""" & fn!char(10) & " ""-""" & fn!char(10) & " ""!""" & fn!char(10) & " ""[""" & fn!char(10) & " ""(""" & fn!char(10) & " ""{""" & fn!char(10) & " <ID>"

Children
No Data