Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

  1. Perform RDB-List to fetch data.
  2. 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

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us