DocX from Dynamic Template

Certified Senior Developer

I'm trying to use "DocX from Dynamic Template" smart service.Here, I am trying to execute the below condition in template.

[#if doc.project.condition = 1] true [#else] false [/#if]

But i'm getting the below error:-

freemarker.core._MiscTemplateException: Can't compare values of these types. Allowed comparisons are between two numbers, two strings, two dates, or two booleans.Left hand operand is a node+sequence+hash+string (org.apache.xerces.dom.DeferredElementNSImpl wrapped into f.e.dom.ElementModel).Right hand operand is a number (wrapper: f.t.SimpleNumber).The blamed expression:==> doc.project.condition = 1  [in template "fr.opensagres.xdocreport.document.docx.DocxReport@2484c608!word/document.xml" at line 4, column 715]The failing instruction:==> #if doc.project.condition = 1  [in template "fr.opensagres.xdocreport.document.docx.DocxReport@2484c608!word/document.xml" at line 4, column 710]

Has anyone encountered this error before ? 

 

Thanks in advance

  Discussion posts and replies are publicly visible