ADT plugin not populating data in word doc.

ADT plugin not populating data in word doc. Below is the XML Data model and screenshot with empty values in generated word doc. Verified that tags are mapped to correct field in word template.


="<Report>"&
"<Name>"&ri!reportDetails.ReportName&"</Name>"&
"<YearEndDate>"&ri!reportDetails.YearEndDate&"</YearEndDate>"&
"<Partner>"&ri!reportDetails.Partner&"</Partner>"&
"<DocFromDynTemp>"&a!forEach(ri!GC_Report_Data, rule!GC_getXMLdataforDcoument(fv!item))&"</DocFromDynTemp>"&
"<finalContent>"&ri!finalContent&"</finalContent>"&
"</Report>"

expression rule!GC_getXMLdataforDcoument has. With or without the table grid, none of the fields are mapped in output doc.

"<rowvalues Question = "&"'"&ri!GC_Report_Data.QuestionId&"'"&" Answer= "&"'"&ri!GC_Report_Data.Answer&"'"&" /

The issue happening when rule input fields are mapped, when hard coding some text into the mappings, then it is fine. only rule input fields are getting mapped irrespective of field type.

Another observation is below. The XMLDataModel being passed is empty and without any rule input field values mapped to the output xml for mappings into word doc. The result is below without values and empty tags or attributes. This is the root cause of the issue. Not sure why the expression rule above is not using the rule inputs to generate xml with values. But, when i unit test the rule, the output is correctly returned with values.

<report><reportname></reportname><ri></ri><yearenddate></yearenddate><docfromdyntemp><rowvalues questionnumber = '' question = '' answer= '' /></docfromdyntemp><finalcontent></finalcontent></report>

Unit test is returning with values correctly as shown below but not when used the rule in PM and passed the runtime PV variables.

"<report><reportname>Illigal docs</reportname><ri>Oli.Chilton@kpmg.co.uk</ri><yearenddate>01/01/2035</yearenddate><docfromdyntemp><rowvalues questionnumber = 'Part 1, 1.2' question = '1.2 Does a significant portion (more than 10% of gross term debt facilities available) of the entity’s term debt approach maturity ? ' answer= 'yes' />; <rowvalues questionnumber = 'Part 1, 1.3.1' question = '1.3.1 Has the entity' answer= 'No' /></docfromdyntemp><finalcontent></finalcontent></report>"

  Discussion posts and replies are publicly visible