Skip to main content
June 2, 2025
Question

DocX from dynamic template Smart Service

  • June 2, 2025
  • 6 replies
  • 0 views

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 

    6 replies

    shubhama926776
    June 3, 2025

    "
    
    U-123
    9/23/2024
    Texas
    May 30, 2025
    (123) 456-7895
    test@gmail.com
    Chris Hustle
    
    
    
    
    
    "


    Use this code and let me know if that works for you.

    abinayarAuthor
    June 3, 2025

    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>"

    abinayarAuthor
    June 12, 2025

    Is there any other solution available

    stefanhelzle0001
    June 12, 2025

    HTML to PDF: appian.rocks/.../

    harshas2775
    June 12, 2025

    Can you try replacing the ‘ in name with respective unicode character! 

    Known Participant
    June 16, 2025

    Escape the apostrophe using &apos; works!