Support Article
When passing HTML stream to Connect-File, & displays incorrectly
SA-71606
Summary
When passing an HTML stream containing '&' to the Connect-File rule, the '&' is converted to '&'.
Error Messages
Not Applicable
Steps to Reproduce
- Perform RDB-List to fetch data.
- Perform Connect-File to create or write data to the file.
Root Cause
A defect or configuration issue in the operating environment.
In HTML Stream, mode is set to NORMAL.
For example,
<pega:forEach name="PageList.pxResults">
<% out.println("\r");%><pega:reference name="$<property_name>" mode="NORMAL"/>
</pega:forEach ><% out.println("\r");%>
When the input data msut be encoded, the mode must be set to NORMAL in the stream rule. If the input data need not be encoded, the mode must be set to LITERAL. Some fields do not require encoding, hence, the mode for those fields can be set to LITERAL.
Resolution
Following local-change has resolved the issue:
Change the mode in the HTML stream from NORMAL to LITERAL. For example:
<pega:forEach name="BIValuesForLoans.pxResults">
<% out.println("\r");%><pega:reference name="$<property_name>" mode="LITERAL"/>
</pega:forEach ><% out.println("\r");%>
Published January 20, 2019 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.